Warning, file /include/boost/gil/io/error.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_GIL_IO_ERROR_HPP
0009 #define BOOST_GIL_IO_ERROR_HPP
0010
0011 #include <ios>
0012
0013 namespace boost { namespace gil {
0014
0015 inline void io_error(const char* descr)
0016 {
0017 throw std::ios_base::failure(descr);
0018 }
0019
0020 inline void io_error_if(bool expr, const char* descr)
0021 {
0022 if (expr)
0023 io_error(descr);
0024 }
0025
0026 }
0027 }
0028
0029 #endif