I\'ve been trying to define a defaulted move constructor in a class with a boost::optional member variable.
#include
It's not clear how high on the agenda C++11 feature support for boost::optional is.
I found a nice fellow on the Internet who gave me some of his own code under a boost license...which is still undergoing some tweaks. It's at a point where it works for me. Maybe it will help anyone looking at this question:
https://github.com/hostilefork/CopyMoveConstrainedOptional
There is also a larger group effort to define a std::optional which has been going on...but their reference implementation wasn't able to handle some of the cases I had:
http://kojot.sggw.waw.pl/~akrzemi1/optional/tr2.optional.proposal.html