Change Glib::ustring conversion operator to std::string from value to const reference?
Would it be possible to replace this:
Glib::ustring::operator std::string() const;
with this?
Glib::ustring::operator const std::string&() const;
It would avoid unnecessary copies when passing a Glib::ustring
to a function which takes a const std::string&
argument.
Edited by Daniel Boles