I'm haveing some problems figuring out how to use boost/numeric/operators
library.
OK - I understand how to use
template<class T>
struct my_type : boost::numeric::operators<T> {
T & operator+=(T & rhs);
// automatically generate operator+, etc
// ...
};
so that one can use
my_type<int> x, y, z;
z = x + y;
// etc..
There is a simple example like this in the documentation. So far so good.
Now given:
int & operator+=(int & lhs, my_type<int>);
I want to use operators