1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00

variant の trivial move constructor が定義されていなかった問題を修正

This commit is contained in:
bolero-MURAKAMI 2011-12-05 01:03:52 +09:00
parent d748bd7507
commit 097c9c5bed

View file

@ -140,6 +140,7 @@ namespace sprout {
: impl_type() : impl_type()
{} {}
variant(variant const&) = default; variant(variant const&) = default;
variant(variant&&) = default;
template<typename T> template<typename T>
SPROUT_CONSTEXPR variant(T&& operand) SPROUT_CONSTEXPR variant(T&& operand)
: impl_type(sprout::forward<T>(operand), sprout::types::find_index<tuple_type, T>()) : impl_type(sprout::forward<T>(operand), sprout::types::find_index<tuple_type, T>())