Need unique_ptr.get not pointee.get
authorCaleb Epstein <caleb.epstein@gmail.com>
Thu, 28 Jul 2016 12:28:39 +0000 (08:28 -0400)
committerCaleb Epstein <caleb@volanttrading.com>
Thu, 28 Jul 2016 12:31:19 +0000 (08:31 -0400)
docs/source/CppUsage.md

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