Opened 14 years ago

Closed 11 years ago

#259 closed Support Requests (fixed)

Problem compiling :/

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 :)

Attachments (0)

Change History (5)

comment:1 Changed 14 years ago by Vladimir Prus

Logged In: YES 

Please provide a complete example which exhibits the problem. 

comment:2 Changed 14 years ago by nobody

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'

: 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 Changed 11 years ago by david_abrahams

Logged In: YES 
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 Changed 11 years ago by Marshall Clow

Component: Noneiterator
Description: modified (diff)
Severity: Problem

comment:5 Changed 11 years ago by Marshall Clow

Component: iteratortokenizer
Resolution: Nonefixed
Status: assignedclosed

The test file "simple_example_5.cpp" for the tokenizer library includes this file, and passes the regression tests on both VS 7.1, and 8.0.

Marking as fixed.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain jbandela.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.