|
@@ -178,7 +178,7 @@ public:
|
|
|
{
|
|
{
|
|
|
if constexpr(!std::is_void_v<Type>) {
|
|
if constexpr(!std::is_void_v<Type>) {
|
|
|
if constexpr(std::is_lvalue_reference_v<Type>) {
|
|
if constexpr(std::is_lvalue_reference_v<Type>) {
|
|
|
- static_assert(sizeof...(Args) == 1u && (std::is_lvalue_reference_v<Args> && ...));
|
|
|
|
|
|
|
+ static_assert(sizeof...(Args) == 1u && (std::is_lvalue_reference_v<Args> && ...), "Invalid arguments");
|
|
|
instance = (std::addressof(args), ...);
|
|
instance = (std::addressof(args), ...);
|
|
|
} else if constexpr(in_situ<Type>) {
|
|
} else if constexpr(in_situ<Type>) {
|
|
|
new (&storage) Type(std::forward<Args>(args)...);
|
|
new (&storage) Type(std::forward<Args>(args)...);
|