Browse Source

Use universal initialization when constructing user types

Ole 10 years ago
parent
commit
5d3a95a857
1 changed files with 1 additions and 1 deletions
  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);