Boost logo

Boost :

From: Robert Kawulak (kawulak_at_[hidden])
Date: 2008-08-07 05:57:43


Hi,

> From: Chris Jefferson
>
> Now a brief diversion, the compiletime_int trick, which may or may not
> be well known.
>
> The compiletime_int class looks like:
>
> template<int i>
> struct compiletime_int
> { operator int() const { return i; } };

You may consider reusing boost::mpl::int_, which does exactly the same.

Best regards,
Robert


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk