Hello, could some please hint me on my mistake?
I want to get a string array as return of a function. It does not compile with the error "line(0). no matching constructor" (I translated that error into english). But the other 2 functions for comparison work. If I comment the line below //(3), it compiles.
#include <Origin.h>
int test(){
int bla=10;
return bla;
}
string test_string(){
string testname = "blub";
return testname;
}
vector<string> test_vectorstring(){
vector<string> testvec = {
"blub",
"hello",
"grrrrrr"
};
return testvec;
}
int getColIndex()
{
//(1)
int testint = test();
//(2)
string testname = test_string();
//(3)
vector<string> testvec = test_vectorstring();
return 0;
}