sprout/variant.hpp 追加

sprout/type.hpp 追加
This commit is contained in:
bolero-MURAKAMI 2011-11-06 10:56:57 +09:00
parent 488df1e685
commit b6bf03c4ed
30 changed files with 905 additions and 102 deletions

View file

@ -229,7 +229,7 @@ namespace sprout {
: inherited_type(static_cast<sprout::tuples::detail::tuple_impl<0, UTypes...>&&>(t))
{}
// tuple assignment
tuple& operator=(const tuple& rhs) {
tuple& operator=(tuple const& rhs) {
static_cast<inherited_type&>(*this) = rhs;
return *this;
}
@ -248,7 +248,7 @@ namespace sprout {
return *this;
}
// tuple swap
void swap(tuple& other) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(other.swap(other))) {
void swap(tuple& other) SPROUT_NOEXCEPT_EXPR(SPROUT_NOEXCEPT_EXPR(inherited_type::swap(other))) {
inherited_type::swap(other);
}
};
@ -426,4 +426,6 @@ namespace sprout {
using sprout::tuples::get;
} // namespace sprout
#include <sprout/tuple/tuple_comparison.hpp>
#endif // #ifndef SPROUT_TUPLE_TUPLE_HPP