File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,8 @@ int main()
9999 std::optional<Record> classPerson = MyReflection().getClass("Person");
100100
101101 /* Create an instance of 'class Person' via reflection using the default constructor.
102- Returns 'RStatus' and 'Instance' objects. */
103- auto [status, personObj] = classPerson->instance();
102+ Returns 'RStatus' and 'Instance' objects.
103+ */ auto [status, personObj] = classPerson->instance();
104104
105105```
106106- ` RStatus ` contains error-code (` rtl::Error ` ) indicating reflection call success/failure and return value wrapped in ` std::any ` of call, if any.
@@ -109,7 +109,7 @@ int main()
109109
110110 /* Create an instance via reflection using a parameterized constructor.
111111 Argument types/order must match else call will fail, returning error-code in 'status'.
112- auto [status, personObj] = classPerson->instance(std::string("John Doe"), int(42));
112+ */ auto [status, personObj] = classPerson->instance (std::string("John Doe"), int(42));
113113
114114 // Get method of 'class Person'. Returns a callable 'Method' object.
115115 std::optional<Method > setAge = classPerson->getMethod("setAge");
You can’t perform that action at this time.
0 commit comments