Fix wxHash{Set,Map} compilation with g++ 4.7 in C++11 mode.
Fully qualify the hasher and comparator classes used with WX_DECLARE_HASH_{SET,MAP} macros as they're used as base classes by the standard library implementation in g++ 4.7 and using them without the scope operator results in compilation errors because they're interpreted as being (inaccessible) base classes and not the global ones. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -83,8 +83,8 @@
|
||||
@code
|
||||
WX_DECLARE_HASH_MAP( int,
|
||||
wxString,
|
||||
wxIntegerHash,
|
||||
wxIntegerEqual,
|
||||
::wxIntegerHash,
|
||||
::wxIntegerEqual,
|
||||
MyHash );
|
||||
|
||||
// using an user-defined class for keys
|
||||
@@ -119,8 +119,8 @@
|
||||
|
||||
WX_DECLARE_HASH_MAP( MyKey, // type of the keys
|
||||
SOME_TYPE, // any type you like
|
||||
MyKeyHash, // hasher
|
||||
MyKeyEqual, // key equality predicate
|
||||
::MyKeyHash, // hasher
|
||||
::MyKeyEqual, // key equality predicate
|
||||
CLASSNAME); // name of the class
|
||||
@endcode
|
||||
|
||||
|
Reference in New Issue
Block a user