pass by value instead of rvalue reference for RVO to take place

This commit is contained in:
Andrzej Rybczak
2014-11-01 01:37:32 +01:00
parent 7e2900511c
commit e9a539f8ee
3 changed files with 25 additions and 25 deletions

View File

@@ -70,7 +70,7 @@ void mpd();
bool mainHook(const char *);
/// prompt and return one of the strings specified in the vector
std::string promptReturnOneOf(std::vector<std::string> &&values);
std::string promptReturnOneOf(std::vector<std::string> values);
struct ImmediatelyReturnOneOf
{