Opened 19 years ago

Last modified 15 years ago

#259 closed Support Requests (fixed)

Problem compiling :/ — at Version 4

Reported by: nobody Owned by: jbandela
Milestone: Component: tokenizer
Version: None Severity: Problem
Keywords: Cc:

Description (last modified by Marshall Clow)

Hi :)

I've some problems compiling code that use
\boost\iterator\transform_iterator.hpp (under VC++ 7 -
VS2K2) :

transform_iterator.hpp(45) : error C2825 :
'UnaryFunction::result_type': cannot form a qualified name

transform_iterator.hpp(45) : error C2039: 'result_type'
: is not a member of 'operator``global namespace'''

transform_iterator.hpp(45) : fatal error C1507 :
previous user errors and subsequent error recovery halt
further compilation

Thanks in advance :)

Change History (4)

comment:1 by Vladimir Prus, 18 years ago

Logged In: YES 
user_id=321498

Please provide a complete example which exhibits the problem. 

comment:2 by nobody, 18 years ago

Logged In: NO 

The following compiles under Visual C++ .Net with "Language
Extensions" enabled, but it fails otherwise:

#include <boost/token_iterator.hpp>
int main()
{
    return 0;
}

The received errors are:

d:\Programming\boost\boost\detail\iterator.hpp(174) : error
C2061: syntax error : identifier 'value_type'

d:\Programming\boost\boost\mpl\aux_\preprocessed\msvc70\or.hpp(27)
: error C2970: 'boost::mpl::aux::or_impl' : template
argument 'C_' : invalid use of non-integral-constant static
variable 'value' as non-type argument
(and 4 more similar to the last one)

How can I fix this? Any help will be appreciated.


Hector C.

comment:3 by david_abrahams, 16 years ago

Logged In: YES 
user_id=52572
Originator: NO

I'm assigning this to John Bandela, the token iterator author, in case he wants to take responsibility for it.  However, it looks very much like a compiler bug (vc7 is rife with them) and if I were John I'd probably close it as "won't fix" because the compiler is two versions out-of-date and finding a workaround is likely to be difficult.

comment:4 by Marshall Clow, 15 years ago

Component: Noneiterator
Description: modified (diff)
Severity: Problem
Note: See TracTickets for help on using tickets.