C++ Utilities  4.17.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
catchiofailure.h
Go to the documentation of this file.
1 #ifndef IOUTILITIES_CATCHIOFAILURE_H
2 #define IOUTILITIES_CATCHIOFAILURE_H
3 
4 #include "../global.h"
5 
6 #include <string>
7 
8 namespace IoUtilities {
9 
11 [[noreturn]] CPP_UTILITIES_EXPORT void throwIoFailure(const char *what);
12 } // namespace IoUtilities
13 
14 #endif // IOUTILITIES_CATCHIOFAILURE_H
CPP_UTILITIES_EXPORT void throwIoFailure(const char *what)
Throws an std::ios_base::failure with the specified message.
#define CPP_UTILITIES_EXPORT
Contains utility classes helping to read and write streams.
Definition: binaryreader.h:10
CPP_UTILITIES_EXPORT const char * catchIoFailure()
Provides a workaround for GCC Bug 66145.