state.doString("function cat(a,b) return a .. b end");
std::string text = state["cat"]("aa","bb"));
Has compile error:
/Users/Simon/workspace/LuaState/test/Test.cpp:160:10: Use of overloaded operator '=' is ambiguous (with operand types 'std::string' (aka 'basic_string<char, char_traits, allocator >') and 'lua::Function')
Workaround:
std::string text = lua::String(state["cat"]("aa","bb"));
Has compile error:
Workaround: