Ionutz
unread,Oct 29, 2008, 11:39:45 AM10/29/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rlog-users
Hi,
Many C++ classes come with 'ostream& operator<<(ostream&, const class&
C)' style operators.
How can these be used with rLog?
Is there a recommended way to do it?
I have used something like this:
std::string person2str(const Person& p)
{
std::stringstream os;
os << p;
return os.str();
}
...
rDebug("bad person: %s", person2str(p).c_str());
Is there a better way to do it?
Thanx,
Ionutz