We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd52f0a commit 4f8880fCopy full SHA for 4f8880f
site/source/docs/porting/connecting_cpp_and_javascript/embind.rst
@@ -860,7 +860,7 @@ Class properties can be defined several ways as seen below.
860
class_<Person>("Person")
861
.constructor<>()
862
// Bind directly to a class member with automatically generated getters/setters using a
863
- // reference return policy so the object does not need to be deleted JS.
+ // reference return policy so the object does not need to be deleted from JS.
864
.property("location", &Person::location, return_value_policy::reference())
865
// Same as above, but this will return a copy and the object must be deleted or it will
866
// leak!
0 commit comments