The trick I'm using with "this_translation_unit" compiles just fine on GNU
and Clang, however it fails on Microsoft because the variable has internal
linkage. I'm sure this can be done another way using Boost preprocessor
stuff. The preprocessor macro "__COUNTER__" is available on every C++
compiler I know of.
P.S. This is my second idea to the Boost development list. My first one is