26 Sep
2007
26 Sep
'07
10:11 p.m.
on Mon Sep 24 2007, "chun ping wang"
the problem occurs if i pass a primtive type into T. If i actually have
class X : boost::operators<X> { // ... };
and than using X as a template parameter it works.
However it doesn't seem to accept primitive type because of the following reasons... error C2803: 'operator --' must have at least one formal parameter of class type
operators is not supposed to be used that way. The only right way to use operators<X> is to have X be a class derived from operators<X>. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com