Update empty_value constructors

This commit is contained in:
Glen Fernandes
2020-05-23 19:53:16 -04:00
parent 34373b0127
commit 0dbd5aaadd
2 changed files with 7 additions and 7 deletions

View File

@ -90,7 +90,7 @@ public:
empty_value() = default;
template<class... Args>
explicit empty_value(empty_init_t, Args&&... args);
empty_value(empty_init_t, Args&&... args);
const T& get() const noexcept;

View File

@ -59,9 +59,9 @@ public:
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
template<class... Args>
explicit empty_value(boost::empty_init_t, Args&&... args)
: value_(std::forward<Args>(args)...) { }
template<class U, class... Args>
empty_value(boost::empty_init_t, U&& value, Args&&... args)
: value_(std::forward<U>(value), std::forward<Args>(args)...) { }
#else
template<class U>
empty_value(boost::empty_init_t, U&& value)
@ -107,9 +107,9 @@ public:
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
template<class... Args>
explicit empty_value(boost::empty_init_t, Args&&... args)
: T(std::forward<Args>(args)...) { }
template<class U, class... Args>
empty_value(boost::empty_init_t, U&& value, Args&&... args)
: T(std::forward<U>(value), std::forward<Args>(args)...) { }
#else
template<class U>
empty_value(boost::empty_init_t, U&& value)