boost::variant; std::unique_ptr and copy
问题 This Question Determined That a Non-Copyable Type Can't Be Used With Boost Variant Tree class template <class T = int> class Tree{ private: class TreeNode{ public: std::unique_ptr Nodes Move constructors and move assignment + other public members private: TreeNode(const TreeNode &other); (= delete not supported on compiler) TreeNode& operator=(const TreeNode &rhs); (= delete not supported on compiler) }; // End Tree Node Class Definition Tree(const Tree &other); (= delete not supported on