
"Arkadiy Vertleyb" <vertleyb@hotmail.com> writes:
"David Abrahams" <dave@boost-consulting.com> wrote
Can't we do something with a unique name per header file using typeof?
#define BOOST_TYPEOF_HEADER boost_lambda_whatever
We could use that to define a uniquely-named type and/or synthesize identifiers using __LINE__.
I am afraid I don't understand this... How would we use this unique name? We can't convert it to a unique number, can we?
We can build a unique type and use that as one parameter to any templates we need to instantiate in this file.
Each type/template is registered in some particular (header/source) file at some particular line. The line gives us a unique id inside the file. What's missing is a unique integer that would identify the file.
Not everything has to be an integer ;-) -- Dave Abrahams Boost Consulting http://www.boost-consulting.com