Chris@101: /* Copyright 2003-2013 Joaquin M Lopez Munoz. Chris@16: * Distributed under the Boost Software License, Version 1.0. Chris@16: * (See accompanying file LICENSE_1_0.txt or copy at Chris@16: * http://www.boost.org/LICENSE_1_0.txt) Chris@16: * Chris@16: * See http://www.boost.org/libs/multi_index for library home page. Chris@16: */ Chris@16: Chris@16: #ifndef BOOST_MULTI_INDEX_SAFE_MODE_ERRORS_HPP Chris@16: #define BOOST_MULTI_INDEX_SAFE_MODE_ERRORS_HPP Chris@16: Chris@101: #if defined(_MSC_VER) Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: namespace boost{ Chris@16: Chris@16: namespace multi_index{ Chris@16: Chris@16: namespace safe_mode{ Chris@16: Chris@16: /* Error codes for Boost.MultiIndex safe mode. These go in a separate Chris@16: * header so that the user can include it when redefining Chris@16: * BOOST_MULTI_INDEX_SAFE_MODE_ASSERT prior to the inclusion of Chris@16: * any other header of Boost.MultiIndex. Chris@16: */ Chris@16: Chris@16: enum error_code Chris@16: { Chris@16: invalid_iterator=0, Chris@16: not_dereferenceable_iterator, Chris@16: not_incrementable_iterator, Chris@16: not_decrementable_iterator, Chris@16: not_owner, Chris@16: not_same_owner, Chris@16: invalid_range, Chris@16: inside_range, Chris@16: out_of_bounds, Chris@16: same_container Chris@16: }; Chris@16: Chris@16: } /* namespace multi_index::safe_mode */ Chris@16: Chris@16: } /* namespace multi_index */ Chris@16: Chris@16: } /* namespace boost */ Chris@16: Chris@16: #endif