Opened 11 years ago

Last modified 10 years ago

#5858 new Bugs

Issue to compile in VS 2008, VC 9.0.30729.1 SP without Microsoft extensions — at Version 3

Reported by: Dr. Sergey Kiselev <SergK13@…> Owned by: Dave Abrahams
Milestone: To Be Determined Component: iterator
Version: Boost 1.35.0 Severity: Problem
Keywords: BOOST_CONCEPT_ASSERT Cc: SergK13@…

Description (last modified by Dave Abrahams)

The issue appears first in 1.35.0 version. The version 1.34.1 is still OK. It is only appears when microsoft extentions are disabled. The library is "Iterator". For version 1.35.1: the file is iterator_concepts.hpp, line nuber is 136:

BOOST_concept(SinglePassIterator, (Iterator))
    : IncrementableIterator <Iterator>
    , boost::EqualityComparable <Iterator>

  {
--->>>      BOOST_CONCEPT_ASSERT((
          boost::Convertible<
             BOOST_DEDUCED_TYPENAME SinglePassIterator::traversal_category
           , boost::single_pass_traversal_tag
          > ));
  };

The first line of error message is \boost\include\boost-1_35_0\boost/iterator/iterator_concepts.hpp(136) : error C2146: syntax error : missing ',' before identifier 'traversal_category'

Change History (4)

comment:1 by Dave Abrahams, 11 years ago

IMO this is almost certainly a compiler bug, but for us to be sure it would help if you could post the preprocessor output.

by SergK13Stuff@…, 11 years ago

Attachment: BoostPreprocessor.i added

PreprocessorOutput (stripped)

comment:2 by SergK13Stuff@…, 11 years ago

I have posted preprocessor output which has been generated on boost version 1.35.0 and 9.0.30729.1 SP .NET 3.5 SP1 without Microsoft extensions. I have changed the flag in settings: C/C++/Preprocessor/Generate Preprocessor File to "With Line Numbers (/P)" in order to produce this file. After that file has been stripped off all information which is irrelevant I think. I just leave what is connected to the problem. However when I enable this flag my cpp files is compiled without any errors. Do you have any suggestions?

comment:3 by Dave Abrahams, 11 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.