[wx-dev] #9725: Compile error in tests/hashes/hashes.cpp
wxTrac
noreply at wxsite.net
Sun Jul 13 10:58:10 PDT 2008
Ticket URL: <http://trac.wxwidgets.org/ticket/9725>
#9725: Compile error in tests/hashes/hashes.cpp
-------------------------+--------------------------------------------------
Reporter: Peter Most | Owner:
Type: build error | Status: new
Priority: low | Milestone:
Component: build | Version: 2.9-svn
Keywords: | Blockedby:
Patch: 0 | Blocking:
-------------------------+--------------------------------------------------
When trying to compile the unit tests I'm getting compiler errors:
{{{
../../tests/hashes/hashes.cpp: In function ‘void HashMapTest() [with
HashMapT = std::tr1::unordered_map<wxString, wxString, wxStringHash,
wxStringEqual, std::allocator<std::pair<const wxString,
wxString> >, false>]’:
../../tests/hashes/hashes.cpp:462: instantiated from here
../../tests/hashes/hashes.cpp:386: error: no type named ‘t2’ in ‘struct
std::pair<const wxString, wxString>’
}}}
These are coming from:
{{{
template <class HashMapT>
void HashMapTest()
{
#if wxUSE_STL && defined HAVE_STL_HASH_MAP
typedef typename HashMapT::value_type::second_type value_type;
#else
typedef typename HashMapT::value_type::t2 value_type;
#endif
typedef typename HashMapT::key_type key_type;
typedef typename HashMapT::iterator Itor;
}}}
The line:
{{{
typedef typename HashMapT::value_type::t2 value_type;
}}}
probably exists to support the generated pair type with _WX_DECLARE_PAIR
--
Ticket URL: <http://trac.wxwidgets.org/ticket/9725>
More information about the wx-dev
mailing list