Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) iterator.hpp: Invalid template argument list

 

Compile error.

 

Full error message

 

[C++ Error] iterator.hpp(62): E2401 Invalid template argument list

 

 

 

 

 

Cause

 

 

#include <boost/foreach.hpp>

 

 

 

 

 

Which takes you to the following line in 'include/boost/range/iterator.hpp':

 

typedef BOOST_RANGE_DEDUCED_TYPENAME
mpl::eval_if_c< is_const<C>::value,
range_const_iterator< typename remove_const<C>::type >,
range_mutable_iterator<C> >::type type;

 

 

 

 

 

Solution

 

This compiler is not supported by Boost. Change to another compiler.

 

 

 

 

 

Note

 

This does not work:

 

#define BOOST_MSVC 1310
#include <boost/foreach.hpp>

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml