diff options
Diffstat (limited to 'include/ocl/print.hpp')
| -rw-r--r-- | include/ocl/print.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ocl/print.hpp b/include/ocl/print.hpp index a667225..70b79dd 100644 --- a/include/ocl/print.hpp +++ b/include/ocl/print.hpp @@ -42,6 +42,13 @@ namespace ocl::io namespace detail { inline bool is_stdio_sync = true; + + using io_error = std::runtime_error; + + inline void throw_option_invalid_type_error(const boost::string_view& loc = BOOST_CURRENT_LOCATION.to_string()) + { + throw io_error(loc.to_string()); + } } inline void enable_stdio_sync(const bool& enable) noexcept |
