1234567891011121314151617181920212223242526272829 |
- #ifndef BOOST_GIL_IO_ERROR_HPP
- #define BOOST_GIL_IO_ERROR_HPP
- #include <ios>
- namespace boost { namespace gil {
- inline void io_error(const char* descr)
- {
- throw std::ios_base::failure(descr);
- }
- inline void io_error_if(bool expr, const char* descr)
- {
- if (expr)
- io_error(descr);
- }
- }
- }
- #endif
|