]>
Dogcows Code - chaz/yoink/blob - portability_exceptions.hpp
e47e6a08902619748ecc398891137108938e1c93
1 #ifndef STLPLUS_PORTABILITY_EXCEPTIONS
2 #define STLPLUS_PORTABILITY_EXCEPTIONS
3 ////////////////////////////////////////////////////////////////////////////////
5 // Author: Andy Rushton
6 // Copyright: (c) Southampton University 1999-2004
7 // (c) Andy Rushton 2004-2009
8 // License: BSD License, see ../docs/license.html
10 // Adds missing arithmetic exceptions used in this library but missing from std
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "portability_fixes.hpp"
20 ////////////////////////////////////////////////////////////////////////////////
21 // thrown by division when the divisor is zero
22 // This is a subclass of std::logic_error so can be caught by a generic catch clause for the superclass
24 class divide_by_zero
: public std::logic_error
{
26 divide_by_zero (const std::string
& what_arg
): std::logic_error (what_arg
) { }
29 ////////////////////////////////////////////////////////////////////////////////
31 } // end namespace stlplus
This page took 0.033476 seconds and 3 git commands to generate.