Re: 'noexcept' and 'nullptr' in gtkmm-2-24

This happened when I copied some code from glibmm, code which has been deprecated
in new versions of glibmm. Ironically, I added this comment:

  // Glib::ScopedPtr has been deprecated in glibmm 2.47.6.
  // We don't want to use the replacement, Glib::make_unique_ptr_gfree(),
  // in gtkmm-2, because it requires C++11.

and I didn't notice that the copied code requires C++11. I'll fix it.


Den 2016-05-30 kl. 12:08, skrev John Emmas:
Am I right in thinking that 'noexcept' is C++11 only? If so, there's a problem in the gtkmm-2-24 branch at line 151 in 'gdk/src/types.hg':-

      ~ScopedPtr() noexcept { g_free(ptr_); }

I realise that gtkmm master now requires C++11 - but IIRC the 2-24 branch is supposed to be buildable with earlier compilers. 'nullptr' is also causing problems a couple of lines earlier, at line 149:-

        ScopedPtr() : ptr_(nullptr) {}

Just flagging them up.  They should be pretty simple to fix. Regards,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]