
"David Abrahams" <dave@boost-consulting.com> wrote
"Arkadiy Vertleyb" <vertleyb@hotmail.com> writes:
I guess my point is that I would like to prove that ODR is not important in this case, but I don't have enough knowledge of compilers to do it with reasonable accuracy :(
Here's my data point: so far the ODR problem with Boost.Bind placeholders has never caused any complaints.
If we decided to go with automatic registration, would you suggest putting the registration templates inside the anonimous namespace? By the way, Daniel James suggested an idea which I didn't like first, but, come to think about it, might be not that bad after all: We could create a compile-time GUID template, and register against its instantiations. Some of the outputs of the Guidgen are quite suitable for instantiation of such a template. This class could be passed from the function using sizeof() in four steps... Probably an overkill, though. And would probably introduce noticable compile-time performance penalty... Besides, is GUID a portable concept? Arkadiy