28 #ifndef __RTTR_PROPERTY_ACCESSOR__
29 #define __RTTR_PROPERTY_ACCESSOR__
37 struct property_accessor
39 static bool set_value(T& prop, argument& arg)
41 prop = arg.get_value<T>();
46 template<
typename T, std::
size_t N>
47 struct property_accessor<T[N]>
49 static bool set_value(T (& prop)[N], argument& arg)
51 copy_array(arg.get_value<T[N]>(), prop);
57 struct property_accessor<T*>
59 static bool set_value(T* prop, argument& arg)
61 *prop = *arg.get_value<T*>();
66 template<
typename T, std::
size_t N>
67 struct property_accessor<T(*)[N]>
69 static bool set_value(T (* prop)[N], argument& arg)
71 copy_array(*arg.get_value<T(*)[N]>(), *prop);
79 #endif // __RTTR_PROPERTY_ACCESSOR_