no_check_policy.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // Copyright (c) 2001 Daniel C. Nuffer
  2. // Copyright (c) 2001-2011 Hartmut Kaiser
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #if !defined(BOOST_SPIRIT_ITERATOR_NO_CHECK_POLICY_MAR_16_2007_1121AM)
  7. #define BOOST_SPIRIT_ITERATOR_NO_CHECK_POLICY_MAR_16_2007_1121AM
  8. #include <boost/spirit/home/support/iterators/multi_pass_fwd.hpp>
  9. #include <boost/spirit/home/support/iterators/detail/multi_pass.hpp>
  10. namespace boost { namespace spirit { namespace iterator_policies
  11. {
  12. ///////////////////////////////////////////////////////////////////////////
  13. // class no_check
  14. // Implementation of the CheckingPolicy used by multi_pass
  15. // It does not do anything :-)
  16. ///////////////////////////////////////////////////////////////////////////
  17. struct no_check
  18. {
  19. ///////////////////////////////////////////////////////////////////////
  20. struct unique : public detail::default_checking_policy {};
  21. ///////////////////////////////////////////////////////////////////////
  22. struct shared {};
  23. };
  24. }}}
  25. #endif