Boost logo

Boost-Commit :

From: ramey_at_[hidden]
Date: 2008-03-23 15:18:23


Author: ramey
Date: 2008-03-23 15:18:22 EDT (Sun, 23 Mar 2008)
New Revision: 43809
URL: http://svn.boost.org/trac/boost/changeset/43809

Log:
removed superflous static cast
Text files modified:
   trunk/boost/serialization/extended_type_info_typeid.hpp | 4 +---
   1 files changed, 1 insertions(+), 3 deletions(-)

Modified: trunk/boost/serialization/extended_type_info_typeid.hpp
==============================================================================
--- trunk/boost/serialization/extended_type_info_typeid.hpp (original)
+++ trunk/boost/serialization/extended_type_info_typeid.hpp 2008-03-23 15:18:22 EDT (Sun, 23 Mar 2008)
@@ -85,9 +85,7 @@
     get_derived_extended_type_info(const T & t) const {
         // note: this implementation - based on usage of typeid (rtti)
         // only does something if the class has at least one virtual function.
- BOOST_STATIC_WARNING(
- static_cast<bool>(boost::is_polymorphic<T>::value)
- );
+ BOOST_STATIC_WARNING(boost::is_polymorphic<T>::value);
         return
             detail::extended_type_info_typeid_0::get_extended_type_info(
                 typeid(t)


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