Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64009 - trunk/boost/functional/hash
From: daniel_james_at_[hidden]
Date: 2010-07-14 04:28:18


Author: danieljames
Date: 2010-07-14 04:28:04 EDT (Wed, 14 Jul 2010)
New Revision: 64009
URL: http://svn.boost.org/trac/boost/changeset/64009

Log:
Only include static_assert when necessary.
Text files modified:
   trunk/boost/functional/hash/hash.hpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/boost/functional/hash/hash.hpp
==============================================================================
--- trunk/boost/functional/hash/hash.hpp (original)
+++ trunk/boost/functional/hash/hash.hpp 2010-07-14 04:28:04 EDT (Wed, 14 Jul 2010)
@@ -15,7 +15,10 @@
 #include <boost/functional/hash/detail/hash_float.hpp>
 #include <string>
 #include <boost/limits.hpp>
+
+#if defined(BOOST_HASH_NO_IMPLICIT_CASTS)
 #include <boost/static_assert.hpp>
+#endif
 
 #if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
 #include <boost/type_traits/is_pointer.hpp>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk