Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/ptr_container/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 | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 // |
Chris@16 | 2 // Boost.Pointer Container |
Chris@16 | 3 // |
Chris@16 | 4 // Copyright Thorsten Ottosen 2003-2005. Use, modification and |
Chris@16 | 5 // distribution is subject to the Boost Software License, Version |
Chris@16 | 6 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 7 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 8 // |
Chris@16 | 9 // For more information, see http://www.boost.org/libs/ptr_container/ |
Chris@16 | 10 // |
Chris@16 | 11 |
Chris@16 | 12 #ifndef BOOST_PTR_CONTAINER_EXCEPTION_HPP |
Chris@16 | 13 #define BOOST_PTR_CONTAINER_EXCEPTION_HPP |
Chris@16 | 14 |
Chris@16 | 15 #if defined(_MSC_VER) && (_MSC_VER >= 1200) |
Chris@16 | 16 # pragma once |
Chris@16 | 17 #endif |
Chris@16 | 18 |
Chris@16 | 19 #include <exception> |
Chris@16 | 20 |
Chris@16 | 21 namespace boost |
Chris@16 | 22 { |
Chris@16 | 23 class bad_ptr_container_operation : public std::exception |
Chris@16 | 24 { |
Chris@16 | 25 const char* what_; |
Chris@16 | 26 public: |
Chris@16 | 27 bad_ptr_container_operation( const char* what ) : what_( what ) |
Chris@16 | 28 { } |
Chris@16 | 29 |
Chris@16 | 30 virtual const char* what() const throw() |
Chris@16 | 31 { |
Chris@16 | 32 return what_; |
Chris@16 | 33 } |
Chris@16 | 34 }; |
Chris@16 | 35 |
Chris@16 | 36 |
Chris@16 | 37 |
Chris@16 | 38 class bad_index : public bad_ptr_container_operation |
Chris@16 | 39 { |
Chris@16 | 40 public: |
Chris@16 | 41 bad_index( const char* what ) : bad_ptr_container_operation( what ) |
Chris@16 | 42 { } |
Chris@16 | 43 }; |
Chris@16 | 44 |
Chris@16 | 45 |
Chris@16 | 46 |
Chris@16 | 47 class bad_pointer : public bad_ptr_container_operation |
Chris@16 | 48 { |
Chris@16 | 49 public: |
Chris@16 | 50 bad_pointer() : bad_ptr_container_operation( "Null pointer not allowed in a pointer container!" ) |
Chris@16 | 51 { } |
Chris@16 | 52 |
Chris@16 | 53 bad_pointer( const char* text ) : bad_ptr_container_operation( text ) |
Chris@16 | 54 { } |
Chris@16 | 55 }; |
Chris@16 | 56 } |
Chris@16 | 57 |
Chris@16 | 58 #endif |