Menu

#151 Need to get rid of throw(...) specifications for C++17

Feature Request
closed-fixed
nobody
None
7
2023-02-11
2019-11-09
szplug
No

It appears that throw(..) specifications were so unused that they're no longer legal.
/usr/local/gcc/bin/g++ .... -std=gnu++17
/usr/include/log4cpp/Priority.hh:107:2: error: ISO C++17 does not allow dynamic exception specifications
107 | throw(std::invalid_argument);

Luckily it's easy to fix - just get rid of them all.

Discussion

  • Alexander Perepelkin

    • status: open --> closed-fixed
     
  • Alexander Perepelkin

    Non-throwing dynamic exception specification throw() replaced with noexcept for modern compilers, version of the compiler determined by macro __cplusplus
    log4cpp-1.1.4rc2
    Tag: REL_1.1.4rc2_Feb_10_2023, https://sourceforge.net/p/log4cpp/codegit/ci/231e96104cf739b03ca011c8b838ac834395e73d

     

Log in to post a comment.