|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2006-06-04 13:51:29
John Maddock wrote:
> The TR1 lib is having problems with Boost.Hash and VC7: note that
> simply including the header is enough to trigger the problem, see for
> example:
>
> http://engineering.meta-comm.com/boost-regression/CVS-RC_1_34_0/developer/output/metacomm-bin-boost-libs-tr1-test-std_test_boost-test-vc-7_0-debug-threading-multi_release.html
>
> Is there any way to fix this?
To answer my own question, the fix is below, OK to commit?
John.
RCS file: /cvsroot/boost/boost/boost/functional/hash/hash.hpp,v
retrieving revision 1.28
diff -u -r1.28 hash.hpp
--- functional/hash/hash.hpp 7 May 2006 17:52:38 -0000 1.28
+++ functional/hash/hash.hpp 4 Jun 2006 17:41:09 -0000
@@ -388,7 +388,7 @@
}
template <class T> struct hash
- : public hash_detail::hash_impl<boost::is_pointer<T>::value>
+ : public boost::hash_detail::hash_impl<boost::is_pointer<T>::value>
::BOOST_NESTED_TEMPLATE inner<T>
{
};
@@ -487,6 +487,10 @@
namespace hash_detail
{
+
+ template <bool b>
+ struct hash_impl;
+
template <>
struct hash_impl<false>
{
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk