mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +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_t
|
||||||
// default_construct
|
// 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 = {};
|
SPROUT_STATIC_CONSTEXPR sprout::tuples::default_construct_t default_construct = {};
|
||||||
} // namespace tuples
|
} // namespace tuples
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue