Просмотр исходного кода

Use universal initialization when constructing user types

Ole лет назад: 10
Родитель
Сommit
5d3a95a857
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/luwra/usertypes.hpp

+ 1 - 1
lib/luwra/usertypes.hpp

@@ -282,7 +282,7 @@ struct Value<U&> {
 		}
 
 		// Construct
-		new (mem) T(std::forward<A>(args)...);
+		new (mem) T {std::forward<A>(args)...};
 
 		// Apply metatable for unqualified type T
 		internal::apply_user_type_meta_table<T>(state);