iterator_range1.cpp 670 B

12345678910111213141516171819202122
  1. // Boost.Range library
  2. //
  3. // Copyright Neil Groves 2011. Use, modification and distribution is subject
  4. // to the Boost Software License, Version 1.0. (See accompanying file
  5. // LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. // For more information, see http://www.boost.org/libs/range
  9. //
  10. #include <boost/range/iterator_range_core.hpp>
  11. namespace iterator_range_test_detail
  12. {
  13. void check_iterator_range_doesnt_convert_pointers()
  14. {
  15. double source[] = { 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 };
  16. boost::iterator_range<float*> rng = boost::make_iterator_range(source);
  17. boost::ignore_unused_variable_warning(rng);
  18. }
  19. }