lvalue_concept_fail.cpp 626 B

1234567891011121314151617181920
  1. // Copyright (C) 2004 Jeremy Siek <jsiek@cs.indiana.edu>
  2. // Distributed under the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #include <boost/iterator/iterator_concepts.hpp>
  6. #include <boost/iterator/iterator_archetypes.hpp>
  7. #include <boost/cstdlib.hpp>
  8. int main()
  9. {
  10. typedef boost::iterator_archetype<
  11. int
  12. , boost::iterator_archetypes::readable_iterator_t
  13. , boost::single_pass_traversal_tag
  14. > Iter;
  15. boost::function_requires<
  16. boost_concepts::LvalueIteratorConcept<Iter> >();
  17. return boost::exit_success;
  18. }