mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fix compilation with clang 4
See https://www.securecoding.cert.org/confluence/display/cplusplus/EXP58-CPP.+Pass+an+object+of+the+correct+type+to+va_start for details
This commit is contained in:
parent
d23328f697
commit
e28f64efd2
@ -442,11 +442,9 @@ namespace fl {
|
|||||||
|
|
||||||
template FL_API std::string Operation::join(int items, const std::string& separator,
|
template FL_API std::string Operation::join(int items, const std::string& separator,
|
||||||
int first, ...);
|
int first, ...);
|
||||||
template FL_API std::string Operation::join(int items, const std::string& separator,
|
|
||||||
double first, ...);
|
|
||||||
|
|
||||||
template <> FL_API std::string Operation::join(int items, const std::string& separator,
|
template <> FL_API std::string Operation::join(int items, const std::string& separator,
|
||||||
float first, ...) {
|
double first, ...) {
|
||||||
std::ostringstream ss;
|
std::ostringstream ss;
|
||||||
ss << str(first);
|
ss << str(first);
|
||||||
if (items > 1) ss << separator;
|
if (items > 1) ss << separator;
|
||||||
|
Loading…
Reference in New Issue
Block a user