since 6dc3bdf, a const string reference would leave scope with Lua code fn("text") calling a C++ fn (const std::string&) before the C++ function is called.
6dc3bdf