diff --git a/include/boost/system/result.hpp b/include/boost/system/result.hpp index 8ff55fb..4e6c00c 100644 --- a/include/boost/system/result.hpp +++ b/include/boost/system/result.hpp @@ -135,7 +135,8 @@ public: template::value && !(detail::is_errc_t::value && std::is_arithmetic::value) && - !std::is_constructible::value + !std::is_constructible::value && + sizeof...(A) >= 1 >::type> explicit constexpr result( A&&... a ) noexcept( std::is_nothrow_constructible::value ) @@ -146,7 +147,8 @@ public: // explicit, error template::value && - std::is_constructible::value + std::is_constructible::value && + sizeof...(A) >= 1 >::type> explicit constexpr result( A&&... a ) noexcept( std::is_nothrow_constructible::value )