boost::any のテンプレート コピー コンストラクター
ブーストの any.hpp でこれらのコードと混同しています。
template<typename ValueType>
any(const ValueType & value)
: content(new holder<
BOOST_DEDUCED_TYPENAME remove_cv<BOOST_DEDUCED_TYPENAME decay<const ValueType>::type>::type
>(value))
{
}
any(const any & other)
: content(other.content ? other.content->clone() : 0)
{
}
別のオブジェクトから新しい任意のオブジェクトが必要な場合、sencod copy-constructor が役立つことは明らかです。しかし、最初のコピー構築が実行されるのはいつですか?