tostring() operator outside class?
Kristoffer Danielsson <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Consider this:
,luabind::class_<Test>("Test")
.def(luabind::tostring(luabind::const_self))
ostream& operator << (ostream &os, const Test &test)
{
os << test.value;
return os;
}
Is it possible to NOT have this friend operator of class Test and map it in another way? Something like this:
,luabind::class_<Test>("Test")
.def(luabind::tostring(test_tostring_operator))
void test_tostring_operator() { blah }
Thanks
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user