
7 Aug
2008
7 Aug
'08
9:57 a.m.
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