
5 Apr
2007
5 Apr
'07
6:13 p.m.
AMDG Matthias Schabel <boost <at> schabel-family.org> writes:
http://thread.gmane.org/gmane.comp.lib.boost.devel/101946/focus=102070
Would that be enough? Usage would look like:
#include BOOST_UNITS_ORDINAL_GENERATOR() struct my_unit : ordinal<BOOST_UNITS_NEXT_ORDINAL> { };
I believe the problem with this is that it doesn't guarantee uniqueness across translation units;
Right. The best I have been able to think of so far is (sizeof(__FILE__) * 1000000 + __LINE__). This is a dead end unless I can find some way to extract more information from __FILE__ than it's size at compile time. In Christ, Steven Watanabe