"Fredrik Blomqvist" <[EMAIL PROTECTED]> wrote in message b0cvd7$4dv$[EMAIL PROTECTED]">news:b0cvd7$4dv$[EMAIL PROTECTED]... > -snip- > > I thought the C++ template solution by Damian Conway was pretty neat, > -snip- > I thought so too at first, but at a closer look you can see that the code in > practice only works for integers.. It solves the problem in the original > thread, but shouldn't be mistaken for a generic solution.
It seems as if it should work for any type with a copy constructor. Perhaps I missed something. Nonetheless I do favor a compiler change such as allowing the "default" keyword to be used instead as Mr. Terekhov suggested in that same thread. That would be much cleaner and should be easy for any compiler to handle. This is one case where I would like to see the language updated with such an easy, transparent solution to the problem. Of course if others don't see it as much of a problem, they wouldn't be in favor of the solution since it involves the dreaded "C++ language change" <g>. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost