std::string vs other strings

Cory Riddell <[email protected]> Fri, 09 Nov 2012 15:14:59 -0600
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
I can bind a function like:

const char* say_hello()
{
    return "hello";
}

or

std::string say_hello()
{
    return std::string("hello");
}

and use it with luabind easily. If I want to return another string
format like MFC's CString or Qt's QString, what do I need to do? I
grepped the source looking for something like:
  class_<std::string>("???")
    .def( ... )

I figured I would do the same thing for other string types, but I didn't
find anything. Why does std::string just seem to work?

Cory

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov