1 /* Copyright 2016-2017 Joaquin M Lopez Munoz.
2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
6 * See http://www.boost.org/libs/poly_collection for library home page.
9 #ifndef BOOST_POLY_COLLECTION_EXCEPTION_HPP
10 #define BOOST_POLY_COLLECTION_EXCEPTION_HPP
21 namespace poly_collection{
23 struct unregistered_type:std::logic_error
25 unregistered_type(const std::type_info& info):
26 std::logic_error{"type not registered"},
30 const std::type_info* pinfo;
33 struct not_copy_constructible:std::logic_error
35 not_copy_constructible(const std::type_info& info):
36 std::logic_error{"type is not copy constructible"},
40 const std::type_info* pinfo;
43 struct not_equality_comparable:std::logic_error
45 not_equality_comparable(const std::type_info& info):
46 std::logic_error{"type does not support equality comparison"},
50 const std::type_info* pinfo;
53 } /* namespace poly_collection */
55 } /* namespace boost */