Need unique_ptr.get not pointee.get

This commit is contained in:
Caleb Epstein 2016-07-28 08:28:39 -04:00 committed by Caleb Epstein
parent 094f4d1bad
commit 50e13ef9c6
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ To use:
cout << monsterobj->name; // This is now a std::string! cout << monsterobj->name; // This is now a std::string!
monsterobj->name = "Bob"; // Change the name. monsterobj->name = "Bob"; // Change the name.
FlatBufferBuilder fbb; FlatBufferBuilder fbb;
CreateMonster(fbb, monsterobj->get()); // Serialize into new buffer. CreateMonster(fbb, monsterobj.get()); // Serialize into new buffer.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## Reflection (& Resizing) ## Reflection (& Resizing)