23 Jan
2007
23 Jan
'07
6:10 p.m.
On 1/23/07, pwm
I am unable to find it now, but I thought I saw that there is a boost way to define a typedef using a unique class that cannot be implicitly converted to another type. Thus,
typedef int Foo; void bar( Foo a );
would compile only with bar( Foo(3) ) not bar(3)
Is this capability in Boost 1.33 or am I hallucinating?
Thanks, Phil
strong_typedef.hpp? (http://www.boost.org/boost/strong_typedef.hpp) Tony