From: <mar...@us...> - 2014-02-18 20:50:05
|
Revision: 6919 http://sourceforge.net/p/freeorion/code/6919 Author: marcel_metz Date: 2014-02-18 20:50:03 +0000 (Tue, 18 Feb 2014) Log Message: ----------- The standard template library only standardizes the std::vector<typename T>(size_t count, T value = T()) constructor, but no std::vector<typename T>(T value, size_t count) constructor. Modified Paths: -------------- trunk/FreeOrion/universe/ValueRef.h Modified: trunk/FreeOrion/universe/ValueRef.h =================================================================== --- trunk/FreeOrion/universe/ValueRef.h 2014-02-18 18:36:37 UTC (rev 6918) +++ trunk/FreeOrion/universe/ValueRef.h 2014-02-18 20:50:03 UTC (rev 6919) @@ -897,7 +897,7 @@ const ValueRefBase<int>* int_ref2, const ValueRefBase<std::string>* string_ref1, const ValueRefBase<std::string>* string_ref2) : - Variable<T>(ValueRef::NON_OBJECT_REFERENCE, std::vector<std::string>(variable_name, 1u)), + Variable<T>(ValueRef::NON_OBJECT_REFERENCE, std::vector<std::string>(1, variable_name)), m_int_ref1(int_ref1), m_int_ref2(int_ref2), m_string_ref1(string_ref1), @@ -910,7 +910,7 @@ const ValueRefBase<std::string>* string_ref1, const ValueRefBase<int>* int_ref2, const ValueRefBase<std::string>* string_ref2) : - Variable<T>(ValueRef::NON_OBJECT_REFERENCE, std::vector<std::string>(variable_name, 1u)), + Variable<T>(ValueRef::NON_OBJECT_REFERENCE, std::vector<std::string>(1, variable_name)), m_int_ref1(int_ref1), m_int_ref2(int_ref2), m_string_ref1(string_ref1), |