Shouldn't classes like Any and DynamicAny have move constructors and move assignment operators, now that (as far as I know) move semantics are pretty well supported by the major compilers?
Something along the lines of:
- Code: Select all
Any(Any&& other) :
_content(0)
{
swap(other);
}
The only problems I can think of regarding this code would be:
-it would obviously need to be enclosed in #ifdefs to select the compilers;
-it could cause heap corruptions if an Any were passed by value across DLL boundaries on Windows, but that's true in the current implementation of the copy constructor as well, so it wouldn't be a new problem.
A more general question would be: what are the plans regarding support for C++11 features in POCO? Again, sorry if this has been discussed before.
Cheers.





