Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:37:03

0001 //
0002 // Copyright 2007-2008 Christian Henning, Andreas Pokorny, Lubomir Bourdev
0003 //
0004 // Distributed under the Boost Software License, Version 1.0
0005 // See accompanying file LICENSE_1_0.txt or copy at
0006 // http://www.boost.org/LICENSE_1_0.txt
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 } // namespace gil
0027 } // namespace boost
0028 
0029 #endif