Opened 13 years ago

Closed 13 years ago

#3142 closed Bugs (fixed)

(Phoenix) incorrect forward declaration for VC9's stdext::hash_map and stdext::hash_multimap

Reported by: Anonymous Owned by: Joel de Guzman
Milestone: Boost 1.40.0 Component: spirit
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:

Description

Compiler used: VC9 sp1( it reports its version as: Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 )

How to reproduce:

#include <hash_map>

#include <boost\spirit\home\phoenix\stl\algorithm\detail\std_hash_map_fwd.hpp>

int main() { }

From the VS command prompt, with the environment variable BOOST_DIR set to the appropriate path, compile:

cl px.cpp /I%BOOST_DIR%

Error:

boost_1_39_0\boost\spirit\home\phoenix\stl\algorithm\detail\std_hash_map_fwd.hpp(29) : error C2976: 'stdext::hash_map' : too few template arguments

C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\hash_map(87) : see declaration of 'stdext::hash_map'

boost_1_39_0\boost\spirit\home\phoenix\stl\algorithm\detail\std_hash_map_fwd.hpp(36) : error C2976: 'stdext::hash_multimap' : too few template arguments

C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\hash_map(181) : see declaration of 'stdext::hash_multimap'

Attachments (1)

px.cpp (121 bytes ) - added by anonymous 13 years ago.
Phoenix/VC9 forward declaration of stdext::hash_map problem

Download all attachments as: .zip

Change History (6)

by anonymous, 13 years ago

Attachment: px.cpp added

Phoenix/VC9 forward declaration of stdext::hash_map problem

comment:1 by viboes, 13 years ago

Component: Nonespirit
Owner: set to Joel de Guzman

comment:2 by Steven Watanabe, 13 years ago

Resolution: fixed
Status: newclosed

(In [53697]) Fix forward declarations of hash containers. Fixes #3142

comment:3 by anonymous, 13 years ago

Resolution: fixed
Status: closedreopened

The fix seems to be missing from 1.40 which still suffers from the wrong number of parameters in the fwd declaration. Please reopen this issue.

comment:4 by anonymous, 13 years ago

Version: Boost 1.39.0Boost 1.40.0

comment:5 by Steven Watanabe, 13 years ago

Resolution: fixed
Status: reopenedclosed

This will be fixed for 1.41.

Note: See TracTickets for help on using tickets.