CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: [RESOLVED] noexcept

  1. #1
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,595

    [RESOLVED] noexcept

    I'm building a popular gtk library called glibmm. Effectively, it's a C++ wrapper around the libglib toolset. Some classes used to have member functions declared like this:-

    Code:
    void whatever_function() throw();
    but in the latest version, that's been changed to this:-

    Code:
    void whatever_function() noexcept;
    I can't find anywhere where noexcept gets defined to throw() - so is this part of some newer C++ specification? (C++11 maybe??)
    "A problem well stated is a problem half solved. - Charles F. Kettering

  2. #2
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,595

    Re: noexcept

    Yes, I think this is something new in C++11
    "A problem well stated is a problem half solved. - Charles F. Kettering

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,607

    Re: [RESOLVED] noexcept

    Best regards,
    Igor

  4. #4
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: [RESOLVED] noexcept

    so upgrade to a compiler supporting C++11

    you 'may' be able to get around it by doing a define yourself
    #define noexcept throw()

    but if that lib has other changes that make use of C++11 concepts (which is very likely) that won't really help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)