Changeset 3375
- Timestamp:
- Feb 11, 2015, 10:25:39 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/iterator.cc
r3374 r3375 3 3 /* 4 4 Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér 5 Copyright (C) 2009, 2010, 2012, 2013, 2014 Peter Johansson5 Copyright (C) 2009, 2010, 2012, 2013, 2014, 2015 Peter Johansson 6 6 7 7 This file is part of the yat library, http://dev.thep.lu.se/yat … … 48 48 #include <boost/iterator/iterator_traits.hpp> 49 49 #include <boost/iterator/transform_iterator.hpp> 50 #include <boost/static_assert.hpp> 51 #include <boost/type_traits.hpp> 50 52 51 53 #include <algorithm> … … 364 366 // test that boost trait class works 365 367 typedef boost::iterator_value<I>::type value_type; 368 // test that value type is DataWeight 369 using utility::DataWeight; 370 BOOST_STATIC_ASSERT((boost::is_same<value_type, DataWeight>::type::value)); 366 371 theplu::yat::utility::weighted_iterator_traits<I>::type tag; 367 372 test::avoid_compiler_warning(tag); … … 372 377 // test that boost trait class works 373 378 typedef boost::iterator_value<I>::type value_type; 379 // test that value type is double 380 BOOST_STATIC_ASSERT((boost::is_same<value_type, double>::type::value)); 374 381 theplu::yat::utility::weighted_iterator_traits<I>::type tag; 375 382 test::avoid_compiler_warning(tag);
Note: See TracChangeset
for help on using the changeset viewer.