Tuple<bool, Vector<String>> LoadTopics(const String& grouppath) { Vector<String> topics; bool renamed = false; // ... return { renamed, pick(topics) }; }
[Updated on: Sun, 06 May 2018 01:11]
Report message to a moderator
Hello, I found that returning vector in tuple is impossible on compilation level. Here is an exemplary code that doesn't compile: Tuple<bool, Vector<String>> LoadTopics(const String& grouppath) { Vector<String> topics; bool renamed = false; // ... return { renamed, pick(topics) }; } I believe the same code done using c++ standard library should compile normally - https://stackoverflow.com/questions/39514150/function-return -a-tuple-made-of-vectors. But, I need to check to be 100% sure. Sincerely, Klugier