|
Boost : |
Subject: [boost] Interest in a 'Boost.property' library?
From: Metodi Todorov (zeroes_at_[hidden])
Date: 2013-07-07 10:04:14
Is there any interest of "C# property" like library?
struct vec2 {
float get_x() const{...}
float set_x() const{...}
...
property_rw<float, vec2, &vec2::get_x, &vec2::set_x> x;
vec2() : y(this) {}
};
vec2 v;
v.x = 15.0f;
cout << v.x << endl;
Example: http://sourceforge.net/projects/cproperty/?source=dlp
Regards,
Metodi Todorov
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk