Browse Source

Use explicit instantiation of std::map instead of {} in option parameter

Ole Krüger 10 years ago
parent
commit
ada2612a38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/luwra/usertypes.hpp

+ 1 - 1
lib/luwra/usertypes.hpp

@@ -274,7 +274,7 @@ template <typename T> static inline
 void register_user_type(
 	State* state,
 	const std::map<const char*, CFunction>& methods,
-	const std::map<const char*, CFunction>& meta_methods = {}
+	const std::map<const char*, CFunction>& meta_methods = std::map<const char*, CFunction>()
 ) {
 	// Setup an appropriate meta table name
 	// luaL_newmetatable(state, internal::user_type_reg_name<T>.c_str());