luabind::cast_failed doubt

Kristoffer Danielsson <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Luabind 0.9.1 (I think :P)
Why can't I retrieve error message from lua stack when cast_failed is thrown?!
 
try
{
    retVal = luabind::call_function<string>(m_pLuaState, "foo");
}
catch(luabind::cast_failed &e)
{
    stringstream ss;
    luabind::object error_msg(luabind::from_stack(e.state(), -1));
    ss << error_msg;
    
    cout << ss.str() << endl; // EMPTY STRING!
}
 
Seems like a flaw!

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.