aboutsummaryrefslogtreecommitdiff
path: root/tests/fdstream
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-28 16:36:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-28 16:36:05 +0200
commit2ddc00326a9d6b647e7213212d0241a60be68256 (patch)
tree1b92409e7b93431b0158e9fdc02fc18e0aa55be6 /tests/fdstream
parentb6f166c4ed98f94bdd2cc82885d61173a101abfd (diff)
Don't throw bool as exception, compiler support seems buggy there
Diffstat (limited to 'tests/fdstream')
-rw-r--r--tests/fdstream/driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fdstream/driver.cxx b/tests/fdstream/driver.cxx
index 0c6c480..03eab80 100644
--- a/tests/fdstream/driver.cxx
+++ b/tests/fdstream/driver.cxx
@@ -263,9 +263,9 @@ main ()
try
{
ofdstream ofs (f);
- throw true;
+ throw ios::failure ("test");
}
- catch (bool)
+ catch (const ios::failure&)
{
}