VirtualBox

Ignore:
Timestamp:
May 6, 2022 2:30:04 AM (3 years ago)
Author:
vboxsync
Message:

IPRT/alloc-ef-cpp.cpp: throw is deprecated in C++17, use noexcept(false) for the exception specification instead to make clang happier. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/alloc-ef-cpp.cpp

    r93115 r94875  
    6262#  ifdef _GLIBCXX_THROW
    6363#   define RT_EF_THROWS_BAD_ALLOC     _GLIBCXX_THROW(std::bad_alloc)
     64#  elif defined(__cplusplus) && (__cplusplus + 0) < 201700
     65#   define RT_EF_THROWS_BAD_ALLOC     throw(std::bad_alloc)
    6466#  else
    65 #   define RT_EF_THROWS_BAD_ALLOC     throw(std::bad_alloc)
     67#   define RT_EF_THROWS_BAD_ALLOC     noexcept(false)
    6668#  endif
    6769#  define RT_EF_NOTHROW               throw()
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette