registration_friend.h File Reference
#include "rttr/detail/base/core_prerequisites.h"

Go to the source code of this file.

Namespaces

 rttr
 

Macros

#define RTTR_REGISTRATION_FRIEND
 When you have a class and the method or property is declared in private scope, then you can still register this item when you insert the macro: RTTR_REGISTRATION_FRIEND inside the class. More...
 

Macro Definition Documentation

#define RTTR_REGISTRATION_FRIEND

When you have a class and the method or property is declared in private scope, then you can still register this item when you insert the macro: RTTR_REGISTRATION_FRIEND inside the class.

See following example code:

#include <rttr/registration_friend> // important!
class foo
{
private:
int value;
};
{
.property("value", &foo:value); // no compile error, because we use 'RTTR_REGISTRATION_FRIEND' inside 'foo'
}