mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
fix default_construct
This commit is contained in:
parent
2979248623
commit
5304c57048
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue