diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-28 16:36:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-28 16:36:05 +0200 |
commit | 2ddc00326a9d6b647e7213212d0241a60be68256 (patch) | |
tree | 1b92409e7b93431b0158e9fdc02fc18e0aa55be6 /tests | |
parent | b6f166c4ed98f94bdd2cc82885d61173a101abfd (diff) |
Don't throw bool as exception, compiler support seems buggy there
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fdstream/driver.cxx | 4 |
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&) { } |