|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60786 - sandbox/statistics/detail/assign/boost/assign/auto_size/array
From: erwann.rogard_at_[hidden]
Date: 2010-03-22 23:01:48
Author: e_r
Date: 2010-03-22 23:01:48 EDT (Mon, 22 Mar 2010)
New Revision: 60786
URL: http://svn.boost.org/trac/boost/changeset/60786
Log:
m
Removed:
sandbox/statistics/detail/assign/boost/assign/auto_size/array/has_static_size.hpp
Deleted: sandbox/statistics/detail/assign/boost/assign/auto_size/array/has_static_size.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/array/has_static_size.hpp 2010-03-22 23:01:48 EDT (Mon, 22 Mar 2010)
+++ (empty file)
@@ -1,53 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// assign::detail::auto_size::has_static_size.hpp //
-// //
-// (C) Copyright 2010 Erwann Rogard //
-// 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) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef BOOST_ASSIGN_DETAIL_AUTO_SIZE_HAS_STATIC_SIZE_ER_2010_HPP
-#define BOOST_ASSIGN_DETAIL_AUTO_SIZE_HAS_STATIC_SIZE_ER_2010_HPP
-#include <boost/mpl/bool.hpp>
-#include <boost/type_traits/detail/yes_no_type.hpp>
-
-namespace boost{
-namespace assign{
-namespace detail{
-namespace auto_size{
-
- template<typename T>
- struct has_static_size{
- typedef typename T::size_type size_type;
- typedef const size_type* sig1;
- typedef const size_type sig2; // for boost::array<>
-
- template<typename U,sig1>
- struct sfinae1 { };
-
- template<typename U,sig2>
- struct sfinae2 { };
-
- //template<typename U> static
- //type_traits::yes_type test(sfinae1<U, &U::static_size> *);
- template<typename U>
- static type_traits::yes_type test(sfinae2<U, U::static_size> *);
- template<typename U>
- static type_traits::no_type test(...);
-
- BOOST_STATIC_CONSTANT(
- bool,
- value = sizeof( test<T>(0) ) == sizeof(type_traits::yes_type)
- );
-
- typedef boost::mpl::bool_<value> type;
- };
-
-}// auto_size
-}// detail
-}// assign
-}// boost
-
-#endif
-
-
\ No newline at end of file
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