Boost logo

Boost :

Subject: [boost] [unordered] patch to remove warning on Visual C++
From: Christopher Lux (christopherlux_at_[hidden])
Date: 2008-11-14 07:32:54


Hi,
appended is a small patch to fix some annoying warnings using Visual C++
8.0 and 9.0.

It would be nice if this could be looked at and applied to the trunk.

The warnings were:

1>brick_pool.cpp
1>E:\devel\working_copies\schism_x64_vc90_sp1\externals\inc\boost\boost/unordered/unordered_map.hpp(388)
: warning C4396: 'boost::operator ==' : the inline specifier cannot be
used when a friend declaration refers to a specialization of a function
template

1>E:\devel\working_copies\schism_x64_vc90_sp1\externals\inc\boost\boost/unordered/unordered_map.hpp(389)
: warning C4396: 'boost::operator !=' : the inline specifier cannot be
used when a friend declaration refers to a specialization of a function
template

Regards
-chris

-- 
Christopher Lux |
                 | Bauhaus-Universität Weimar
                 | faculty of media - virtual reality systems group

Index: boost/unordered/unordered_map.hpp
===================================================================
--- boost/unordered/unordered_map.hpp (revision 49734)
+++ boost/unordered/unordered_map.hpp (working copy)
@@ -385,8 +385,8 @@
         friend bool operator==(unordered_map const&, unordered_map const&);
         friend bool operator!=(unordered_map const&, unordered_map const&);
 #else
- friend bool operator==<>(unordered_map const&, unordered_map const&);
- friend bool operator!=<>(unordered_map const&, unordered_map const&);
+ friend bool operator==<unordered_map>(unordered_map const&, unordered_map const&);
+ friend bool operator!=<unordered_map>(unordered_map const&, unordered_map const&);
 #endif
     }; // class template unordered_map
 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk