Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/archive/iterators/xml_unescape_exception.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 #ifndef BOOST_ARCHIVE_ITERATORS_XML_UNESCAPE_EXCEPTION_HPP |
Chris@16 | 2 #define BOOST_ARCHIVE_ITERATORS_XML_UNESCAPE_EXCEPTION_HPP |
Chris@16 | 3 |
Chris@16 | 4 // MS compatible compilers support #pragma once |
Chris@101 | 5 #if defined(_MSC_VER) |
Chris@16 | 6 # pragma once |
Chris@16 | 7 #endif |
Chris@16 | 8 |
Chris@16 | 9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 |
Chris@16 | 10 // xml_unescape_exception.hpp: |
Chris@16 | 11 |
Chris@16 | 12 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . |
Chris@16 | 13 // Use, modification and distribution is subject to the Boost Software |
Chris@16 | 14 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 15 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 16 |
Chris@16 | 17 // See http://www.boost.org for updates, documentation, and revision history. |
Chris@16 | 18 |
Chris@16 | 19 #include <boost/config.hpp> |
Chris@16 | 20 #ifndef BOOST_NO_EXCEPTIONS |
Chris@16 | 21 #include <exception> |
Chris@16 | 22 |
Chris@16 | 23 #include <boost/assert.hpp> |
Chris@16 | 24 |
Chris@16 | 25 namespace boost { |
Chris@16 | 26 namespace archive { |
Chris@16 | 27 namespace iterators { |
Chris@16 | 28 |
Chris@16 | 29 ////////////////////////////////////////////////////////////////////// |
Chris@16 | 30 // exceptions thrown by xml_unescapes |
Chris@16 | 31 // |
Chris@16 | 32 class xml_unescape_exception : public std::exception |
Chris@16 | 33 { |
Chris@16 | 34 public: |
Chris@16 | 35 xml_unescape_exception() |
Chris@16 | 36 {} |
Chris@16 | 37 |
Chris@16 | 38 virtual const char *what( ) const throw( ) |
Chris@16 | 39 { |
Chris@16 | 40 return "xml contained un-recognized escape code"; |
Chris@16 | 41 } |
Chris@16 | 42 }; |
Chris@16 | 43 |
Chris@16 | 44 } // namespace iterators |
Chris@16 | 45 } // namespace archive |
Chris@16 | 46 } // namespace boost |
Chris@16 | 47 |
Chris@16 | 48 #endif //BOOST_NO_EXCEPTIONS |
Chris@16 | 49 #endif //BOOST_ARCHIVE_ITERATORS_XML_UNESCAPE_EXCEPTION_HPP |