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)
Change History (6)
by , 13 years ago
comment:1 by , 13 years ago
Component: | None → spirit |
---|---|
Owner: | set to |
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 13 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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 , 13 years ago
Version: | Boost 1.39.0 → Boost 1.40.0 |
---|
comment:5 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
This will be fixed for 1.41.
Phoenix/VC9 forward declaration of stdext::hash_map problem