forked from boostorg/static_assert
fix typo in template parameter name
[SVN r13043]
This commit is contained in:
@ -12,12 +12,12 @@
|
|||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
#include <boost/type_traits.hpp>
|
#include <boost/type_traits.hpp>
|
||||||
|
|
||||||
template <class RandonAccessIterator >
|
template <class RandomAccessIterator >
|
||||||
RandonAccessIterator foo(RandonAccessIterator from, RandonAccessIterator)
|
RandomAccessIterator foo(RandomAccessIterator from, RandomAccessIterator)
|
||||||
{
|
{
|
||||||
// this template can only be used with
|
// this template can only be used with
|
||||||
// random access iterators...
|
// random access iterators...
|
||||||
typedef typename std::iterator_traits< RandonAccessIterator >::iterator_category cat;
|
typedef typename std::iterator_traits< RandomAccessIterator >::iterator_category cat;
|
||||||
BOOST_STATIC_ASSERT((boost::is_convertible<cat*, std::random_access_iterator_tag*>::value));
|
BOOST_STATIC_ASSERT((boost::is_convertible<cat*, std::random_access_iterator_tag*>::value));
|
||||||
//
|
//
|
||||||
// detail goes here...
|
// detail goes here...
|
||||||
|
Reference in New Issue
Block a user