
8 Jul
2011
8 Jul
'11
5:59 p.m.
Hello, A simplified example of what I am trying to accomplish follows: // needs to be a POD struct Point { double x, y; // some functions... }; Now I would like Point to be additive, and multiplicative by double, so normally I'd write: struct Point : additive1< Point, multiplicative2< Point, double > > { // supply the needed operators, and let Boost.Operators do the rest }; But Point needs to be POD, and inheritance kills POD-ness. So I'm wondering, can Boost help me here? Regards, Kris
4979
Age (days ago)
4979
Last active (days ago)
0 comments
1 participants
participants (1)
-
Krzysztof Czainski