1 | | In exception_ptr.hpp lines 322 to 325: |
2 | | |
3 | | {{{ |
4 | | default: |
5 | | BOOST_ASSERT(0); |
6 | | case exception_detail::clone_current_exception_result:: |
7 | | not_supported: |
8 | | }}} |
9 | | |
10 | | Coverity complains about the fall-through. |
11 | | Changing it to the following will resolve this and make intentions clearer: |
12 | | |
13 | | {{{ |
14 | | default: |
15 | | BOOST_ASSERT(0); |
16 | | // fall through |
17 | | case exception_detail::clone_current_exception_result:: |
18 | | not_supported: |
19 | | }}} |
20 | | |
21 | | This is present in the development trunk and goes back to at least 1.54. |
| 1 | This is not fall through but undefined behavior as indicated by the use of BOOST_ASSERT. Adding the fall through comment is incorrect and would be misleading. |