El Nov 11, 2010, a las 11:35 AM, ArbolOne <[email protected]> escribió:
> Hi kids!
> I just need a little bit of help to find my bearing when using giomm. If some
> body would be so kind as to show me how this method would be change from std
> to giomm.
>
> TKNX!!
>
> const char* jme::strtools::toStr( const int x ) {
> std::stringstream num;
> num << x;
> tmp = num.str();
> return tmp.c_str();
> }
You're probably better off not trying to use giomm in this case. Apparently,
what the method does is to convert an integer to a string and there's no need
to make it overly complicated if you don't have to. The only thing I would
possibly change is the return from const char* to std::string (or Glib::ustring
if you're using that).
--
José
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list