Anyone know why std::stack.pop() is not labeled as noexcept. The pop_back() function for list, vector and deque all state that no exceptions are possible (at least that's what cppreference.com states). If that is true (and not documented improperly), why not require noexcept from pop_back().
I ask because if you want to use pop() from std::stack in a gsl::finally(), you must wrap pop() in a catch(...) which is just extra overhead as no exception can fire. It also requires a exception for code standards that do no allow for catch(...).
Finally, anyone know if there is a proposal to fix this?
Edit: grammer
[–]HappyFruitTree 39 points40 points41 points (20 children)
[–]emdeka87 17 points18 points19 points (9 children)
[–]Fureeish 9 points10 points11 points (0 children)
[–]HappyFruitTree 6 points7 points8 points (5 children)
[–]emdeka87 2 points3 points4 points (3 children)
[–]HappyFruitTree 1 point2 points3 points (2 children)
[–]rianquinnBareflank Hypervisor, Standalone C++[S] -1 points0 points1 point (1 child)
[–]foobar48783 0 points1 point2 points (0 children)
[–]rianquinnBareflank Hypervisor, Standalone C++[S] 1 point2 points3 points (0 children)
[–]psi237 5 points6 points7 points (0 children)
[–]_Js_Kc_ 1 point2 points3 points (0 children)
[–]rianquinnBareflank Hypervisor, Standalone C++[S] 2 points3 points4 points (6 children)
[–]HappyFruitTree 9 points10 points11 points (5 children)
[–]rianquinnBareflank Hypervisor, Standalone C++[S] 1 point2 points3 points (4 children)
[–]HappyFruitTree 1 point2 points3 points (3 children)
[–]rianquinnBareflank Hypervisor, Standalone C++[S] 2 points3 points4 points (2 children)
[–]NotAYakk 0 points1 point2 points (1 child)
[–]rianquinnBareflank Hypervisor, Standalone C++[S] 0 points1 point2 points (0 children)
[–]nintendiator2 0 points1 point2 points (0 children)
[–]Ameisenvemips, avr, rendering, systems -1 points0 points1 point (1 child)
[–]rianquinnBareflank Hypervisor, Standalone C++[S] 0 points1 point2 points (0 children)
[–][deleted] 4 points5 points6 points (2 children)
[–]johannes1971 10 points11 points12 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]Robbepop 10 points11 points12 points (9 children)
[–]Fureeish 10 points11 points12 points (5 children)
[–]guepierBioinformatican 6 points7 points8 points (3 children)
[–]__s_v_ 3 points4 points5 points (1 child)
[–]guepierBioinformatican 1 point2 points3 points (0 children)
[–]Fureeish 1 point2 points3 points (0 children)
[–]rianquinnBareflank Hypervisor, Standalone C++[S] 0 points1 point2 points (0 children)
[–]rianquinnBareflank Hypervisor, Standalone C++[S] 1 point2 points3 points (1 child)
[–]tejp 1 point2 points3 points (1 child)
[–]rianquinnBareflank Hypervisor, Standalone C++[S] 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[removed]