
23 Jan
2007
23 Jan
'07
7:16 p.m.
There is BOOST_STRONG_TYPEDEF which is part of the serialization library. I made it so that "typedefs" could be used as template parameters and still be distinguishable between each other. I did leave the implict convertability in there though so maybe its not what you need. BOOST_STRONG_TYPEDEF Foo int; void bar(Foo a); // ok { Foo a; bar(a);// ok int b bar(b);// compile error b += a;// ok - implicit conversion like int ... } Robert Ramey