annotate DEPENDENCIES/generic/include/boost/optional/bad_optional_access.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 f46d142149f5
children
rev   line source
Chris@102 1 // Copyright (C) 2014, Andrzej Krzemienski.
Chris@102 2 //
Chris@102 3 // Use, modification, and distribution is subject to the Boost Software
Chris@102 4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@102 5 // http://www.boost.org/LICENSE_1_0.txt)
Chris@102 6 //
Chris@102 7 // See http://www.boost.org/libs/optional for documentation.
Chris@102 8 //
Chris@102 9 // You are welcome to contact the author at:
Chris@102 10 // akrzemi1@gmail.com
Chris@102 11 //
Chris@102 12 #ifndef BOOST_BAD_OPTIONAL_ACCESS_22MAY2014_HPP
Chris@102 13 #define BOOST_BAD_OPTIONAL_ACCESS_22MAY2014_HPP
Chris@102 14
Chris@102 15 #include <stdexcept>
Chris@102 16 #if __cplusplus < 201103L
Chris@102 17 #include <string> // to make converting-ctor std::string(char const*) visible
Chris@102 18 #endif
Chris@102 19
Chris@102 20 namespace boost {
Chris@102 21
Chris@102 22 class bad_optional_access : public std::logic_error
Chris@102 23 {
Chris@102 24 public:
Chris@102 25 bad_optional_access()
Chris@102 26 : std::logic_error("Attempted to access the value of an uninitialized optional object.")
Chris@102 27 {}
Chris@102 28 };
Chris@102 29
Chris@102 30 } // namespace boost
Chris@102 31
Chris@102 32 #endif