lua调用返回string&类型的函数问题

想要查看CCUserDefault存放的xml文件的位置,然后就搜到了这个类

2.x版本 和3.x版本差别还是挺大的,找了个在3.x版本中的函数
2.x CCUserDefault:sharedUserDefault()
3.x CCUserDefault:getInstance()

我的环境是quick2.2,
比较2.x中的函数,有两个函数,在文件(CCUserDefault.cpp)中
std::string CCUserDefault::getStringForKey(const char* pKey)
{
return getStringForKey(pKey, “”);
}
可以正常调用到,若返回的是一个引用类型,在lua环境下调用这个函数则会出错。
const string& CCUserDefault::getXMLFilePath()
{
return m_sFilePath;
}
提示出错如下:3253: error in function ‘getXMLFilePath’. argument #1 is ‘CCUserDefault’; ‘CCUserDefault’ expected.

请问这样的函数我该如何调用,能否说明下返回引用类型的函数是如何绑定到lua的