Den 2017-05-29 kl. 20:22, skrev Daniel Boles:
On 29 May 2017 at 15:32, Murray Cumming <murr...@murrayc.com <mailto:murr...@murrayc.com>> wrote:

    On Fri, 2017-05-26 at 22:11 +0100, Daniel Boles wrote:
    > There are a few uses of the GLib typedef gsize in glibmm et al.
    >
    > I presume it would be safe to provide an M4 conversion from this to
    > std::size_t? Do you think that would be good? To me, it seems nicer
    > to use the C++ standard type.

    Yes, that sounds good. Thanks.



Thanks for the confirmation. Does the same apply to other g* types, both the generic ones (guchar, guint, etc.) and the specific-width ones (guint8 to std::uint8_t, etc.) ?

Concerning unsigned data types, see what I wrote at https://bugzilla.gnome.org/show_bug.cgi?id=135978#c7:

   3. Unsigned data members (e.g. guint32 time) keep their types in
   gtkmm, instead
   of being cast to unsigned int, unsigned short and unsigned char.
   This is how
   unsigned data is usually handled in gtkmm and glibmm. (Don't ask me
   why gint is
   replaced by int, but guint is not replaced by unsigned int. Perhaps
   because
   gmmproc once had problems with type names consisting of more than
   one word.)

See also the table at the end of https://developer.gnome.org/gtkmm-tutorial/stable/sec-wrapping-hg-files.html.en
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to