diff options
Diffstat (limited to 'butl/fdstream.cxx')
-rw-r--r-- | butl/fdstream.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/butl/fdstream.cxx b/butl/fdstream.cxx index e28eb0f..bdbfa08 100644 --- a/butl/fdstream.cxx +++ b/butl/fdstream.cxx @@ -39,8 +39,8 @@ namespace butl // throw_ios_failure // template <bool v> - static inline void - throw_ios_failure (error_code e, typename enable_if<v, const char*>::type m) + static inline typename enable_if<v>::type + throw_ios_failure (error_code e, const char* m) { // The idea here is to make an error code to be saved into failure // exception and to make a string returned by what() to contain the error @@ -57,9 +57,8 @@ namespace butl } template <bool v> - static inline void - throw_ios_failure (error_code e, - typename enable_if<!v, const char*>::type m) + static inline typename enable_if<!v>::type + throw_ios_failure (error_code e, const char* m) { throw ios_base::failure (m != nullptr ? m : e.message ().c_str ()); } |