Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51947 - trunk/boost/serialization
From: ramey_at_[hidden]
Date: 2009-03-23 14:48:52


Author: ramey
Date: 2009-03-23 14:48:51 EDT (Mon, 23 Mar 2009)
New Revision: 51947
URL: http://svn.boost.org/trac/boost/changeset/51947

Log:
moved to type traits
Removed:
   trunk/boost/serialization/is_virtual_base_of.hpp

Deleted: trunk/boost/serialization/is_virtual_base_of.hpp
==============================================================================
--- trunk/boost/serialization/is_virtual_base_of.hpp 2009-03-23 14:48:51 EDT (Mon, 23 Mar 2009)
+++ (empty file)
@@ -1,66 +0,0 @@
-// (C) Copyright Robert Ramey 2009.
-// Use, modification and distribution are subject to the Boost Software License,
-// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt).
-//
-// See http://www.boost.org/libs/type_traits for most recent version including documentation.
-
-#ifndef BOOST_TT_IS_VIRTUAL_BASE_OF_HPP_INCLUDED
-#define BOOST_TT_IS_VIRTUAL_BASE_OF_HPP_INCLUDED
-
-#include <boost/type_traits/is_same.hpp>
-#include <boost/type_traits/detail/ice_not.hpp>
-#include <boost/type_traits/detail/ice_and.hpp>
-
-// should be the last #include
-#include <boost/type_traits/detail/bool_trait_def.hpp>
-
-namespace boost {
-namespace detail {
-
-
-#ifdef BOOST_MSVC
-#pragma warning( push )
-#pragma warning( disable : 4584 )
-#elif defined __GNUC__
-#pragma GCC system_header
-#endif
-
-template<typename Base, typename Derived>
-struct is_virtual_base_of_impl
-{
- struct x : private Derived {};
- struct y : private Derived {};
- struct z : private x, private y {};
- BOOST_STATIC_CONSTANT(bool, value = (sizeof(z) != 2 * sizeof(x)));
-};
-
-#ifdef BOOST_MSVC
-#pragma warning( pop )
-#endif
-
-} // namespace detail
-
-BOOST_TT_AUX_BOOL_TRAIT_DEF2(
- is_virtual_base_of
- , Base
- , Derived
- , (::boost::type_traits::ice_and<
- (::boost::detail::is_virtual_base_of_impl<Base,Derived>::value),
- (::boost::type_traits::ice_not<
- (::boost::is_same<Base,Derived>::value)
- >::value)
- >::value)
-)
-
-#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
-BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC2_2(typename Base,typename Derived,is_virtual_base_of,Base&,Derived,false)
-BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC2_2(typename Base,typename Derived,is_virtual_base_of,Base,Derived&,false)
-BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC2_2(typename Base,typename Derived,is_virtual_base_of,Base&,Derived&,false)
-#endif
-
-} // namespace boost
-
-#include <boost/type_traits/detail/bool_trait_undef.hpp>
-
-#endif


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