File: 02_dtor_noexcept_false.patch

package info (click to toggle)
quickfix 1.15.1%2Bdfsg-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 42,080 kB
  • sloc: cpp: 631,686; python: 129,549; ruby: 106,716; xml: 43,737; ansic: 7,668; java: 1,826; cs: 816; makefile: 544; sh: 462; sql: 313
file content (13 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: Specify that the unit test fixture's dtor will throw exceptions.
Author: Roberto C. Sánchez <roberto@connexer.com>
--- quickfix.git.orig/UnitTest++/src/tests/TestTestMacros.cpp
+++ quickfix.git/UnitTest++/src/tests/TestTestMacros.cpp
@@ -131,7 +131,7 @@
 
 struct FixtureDtorThrows
 {
-	~FixtureDtorThrows() { throw "exception"; }
+	~FixtureDtorThrows() noexcept(false) { throw "exception"; }
 };
 
 TestList throwingFixtureTestList2;