fix default_construct

This commit is contained in:
bolero-MURAKAMI 2014-09-22 13:30:09 +09:00
parent 2979248623
commit 5304c57048

View file

@ -16,7 +16,13 @@ namespace sprout {
// default_construct_t
// default_construct
//
struct default_construct_t {};
struct default_construct_t {
public:
template<typename T>
operator T() const {
return T();
}
};
SPROUT_STATIC_CONSTEXPR sprout::tuples::default_construct_t default_construct = {};
} // namespace tuples