You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// retrieve the metaclass (containing the member data)
const ponder::Class& metaclass = ponder::classByType<Person>();
// construct a new person
ponder::UserObject person = ponder::runtime::create(metaclass, "Bozo");
// set attributes
person.set("height", 1.62f);
person.set("shoeSize", 28);
// retrieve a function we would like to call
const auto& func = metaclass.function("hasBigFeet");
// call the function and get the result
const bool bigFeet = ponder::runtime::call(func, person).to<bool>();
Hi,
Im checking your example:
But in my case, i want something like this:
And the second question is how to create using namespace, example:
Thanks.
The text was updated successfully, but these errors were encountered: