1-
21#ifndef BOOST_CONTRACT_EXCEPTION_HPP_
32#define BOOST_CONTRACT_EXCEPTION_HPP_
43
@@ -96,16 +95,18 @@ class BOOST_CONTRACT_DETAIL_DECLSPEC bad_virtual_result_cast : // Copy (as str).
9695
9796 @b Throws: This is declared @c noexcept (or @c throw() before C++11).
9897 */
99- virtual ~bad_virtual_result_cast ()
100- /* * @cond */ BOOST_NOEXCEPT_OR_NOTHROW /* * @endcond */ ;
98+ ~bad_virtual_result_cast ()
99+ /* * @cond */ BOOST_NOEXCEPT_OR_NOTHROW /* * @endcond */
100+ BOOST_OVERRIDE;
101101
102102 /* *
103103 Description for this error (containing both from- and to- type names).
104104
105105 @b Throws: This is declared @c noexcept (or @c throw() before C++11).
106106 */
107- virtual char const * what () const
108- /* * @cond */ BOOST_NOEXCEPT_OR_NOTHROW /* * @endcond */ ;
107+ char const * what () const
108+ /* * @cond */ BOOST_NOEXCEPT_OR_NOTHROW /* * @endcond */
109+ BOOST_OVERRIDE;
109110
110111/* * @cond */
111112private:
@@ -166,8 +167,9 @@ class BOOST_CONTRACT_DETAIL_DECLSPEC assertion_failure : // Copy (as str, etc.).
166167
167168 @b Throws: This is declared @c noexcept (or @c throw() before C++11).
168169 */
169- virtual ~assertion_failure ()
170- /* * @cond */ BOOST_NOEXCEPT_OR_NOTHROW /* * @endcond */ ;
170+ ~assertion_failure ()
171+ /* * @cond */ BOOST_NOEXCEPT_OR_NOTHROW /* * @endcond */
172+ BOOST_OVERRIDE;
171173
172174 /* *
173175 String describing the failed assertion.
@@ -180,8 +182,9 @@ class BOOST_CONTRACT_DETAIL_DECLSPEC assertion_failure : // Copy (as str, etc.).
180182 File, line, and code will be omitted from this string if they were
181183 not specified when constructing this object.
182184 */
183- virtual char const * what () const
184- /* * @cond */ BOOST_NOEXCEPT_OR_NOTHROW /* * @endcond */ ;
185+ char const * what () const
186+ /* * @cond */ BOOST_NOEXCEPT_OR_NOTHROW /* * @endcond */
187+ BOOST_OVERRIDE;
185188
186189 /* *
187190 Name of the file containing the assertion.
@@ -956,4 +959,3 @@ from_failure_handler const& set_invariant_failure(from_failure_handler const& f)
956959} } // namespace
957960
958961#endif // #include guard
959-
0 commit comments