Message
It fails under both
Microsoft VC++ .NET and Microsoft VC++ .NET 2003.
u:\QuantLib\ql\Utilities\steppingiterator.hpp(108) : error C2061: syntax
error : identifier
'difference_type'
u:\QuantLib\ql\Utilities\steppingiterator.hpp(108) :
warning C4346:
'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::difference_type'
: dependent name is not a type prefix with 'typename' to indicate a
type
u:\QuantLib\ql\Utilities\steppingiterator.hpp(109) : error C2244:
'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::__ctor' :
unable to match function definition to an existing declaration
u:\QuantLib\ql\Utilities\steppingiterator.hpp(55) : see declaration of
'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::__ctor'
definition
'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::stepping_iterator(const
RandomAccessIterator &)' existing declarations
'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::stepping_iterator(const
RandomAccessIterator
&,QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::difference_type)'
u:\QuantLib\ql\Utilities\steppingiterator.hpp(144)
: error C2072:
'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::operator`+=''
: initialization of a
function
u:\QuantLib\ql\Utilities\steppingiterator.hpp(144) : error C2146:
syntax error : missing ')' before identifier
'i'
u:\QuantLib\ql\Utilities\steppingiterator.hpp(144) : error C2433:
'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::operator`+=''
: 'inline' not permitted on data
declarations
u:\QuantLib\ql\Utilities\steppingiterator.hpp(144) : fatal error
C1903: unable to recover from previous error(s); stopping
compilation
u:\QuantLib\ql\Utilities\steppingiterator.hpp(144) : warning
C4346:
'QuantLib::Utilities::stepping_iterator<RandomAccessIterator>::difference_type'
: dependent name is not a type prefix with 'typename' to indicate a
type
Probably, it is some
difference in the implementation of the STL.