safe_mode_errors.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* Copyright 2003-2013 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)
  5. *
  6. * See http://www.boost.org/libs/multi_index for library home page.
  7. */
  8. #ifndef BOOST_MULTI_INDEX_SAFE_MODE_ERRORS_HPP
  9. #define BOOST_MULTI_INDEX_SAFE_MODE_ERRORS_HPP
  10. #if defined(_MSC_VER)
  11. #pragma once
  12. #endif
  13. namespace boost{
  14. namespace multi_index{
  15. namespace safe_mode{
  16. /* Error codes for Boost.MultiIndex safe mode. These go in a separate
  17. * header so that the user can include it when redefining
  18. * BOOST_MULTI_INDEX_SAFE_MODE_ASSERT prior to the inclusion of
  19. * any other header of Boost.MultiIndex.
  20. */
  21. enum error_code
  22. {
  23. invalid_iterator=0,
  24. not_dereferenceable_iterator,
  25. not_incrementable_iterator,
  26. not_decrementable_iterator,
  27. not_owner,
  28. not_same_owner,
  29. invalid_range,
  30. inside_range,
  31. out_of_bounds,
  32. same_container
  33. };
  34. } /* namespace multi_index::safe_mode */
  35. } /* namespace multi_index */
  36. } /* namespace boost */
  37. #endif