I want to do something really simple: I have function that has string parameter and I want to chain it to some constant string, then output result to console like this:
void test(string s){
cout << "Parameter of this function was: " << s;
}
In other languages chaining like this works, but in C++ the compiler is unhappy: error C2679: binary '<<': no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)