CREATE_PROJECT: Fix compilation failure in C++11 mode
Getting the address of an rvalue is invalid, and not necessary here. Once C++11 can be used always, this utility function can just be replaced with std::to_string.
This commit is contained in:
parent
6c40ceded1
commit
61a63f8400
1 changed files with 3 additions and 1 deletions
|
@ -1170,7 +1170,9 @@ bool producesObjectFile(const std::string &fileName) {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string toString(int num) {
|
std::string toString(int num) {
|
||||||
return static_cast<std::ostringstream*>(&(std::ostringstream() << num))->str();
|
std::ostringstream os;
|
||||||
|
os << num;
|
||||||
|
return os.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue