|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65828 - sandbox/itl/boost/itl/type_traits
From: afojgo_at_[hidden]
Date: 2010-10-08 07:48:57
Author: jofaber
Date: 2010-10-08 07:48:56 EDT (Fri, 08 Oct 2010)
New Revision: 65828
URL: http://svn.boost.org/trac/boost/changeset/65828
Log:
Refactoring: Renaming unon, neutron etc. 6. Remove obsolete files after renaming. Stable{msvc-9.0,10.0, gcc-3.4.4}
Removed:
sandbox/itl/boost/itl/type_traits/neutron.hpp
sandbox/itl/boost/itl/type_traits/unon.hpp
Deleted: sandbox/itl/boost/itl/type_traits/neutron.hpp
==============================================================================
--- sandbox/itl/boost/itl/type_traits/neutron.hpp 2010-10-08 07:48:56 EDT (Fri, 08 Oct 2010)
+++ (empty file)
@@ -1,34 +0,0 @@
-/*-----------------------------------------------------------------------------+
-Copyright (c) 2008-2009: Joachim Faulhaber
-+------------------------------------------------------------------------------+
- Distributed under the Boost Software License, Version 1.0.
- (See accompanying file LICENCE.txt or copy at
- http://www.boost.org/LICENSE_1_0.txt)
-+-----------------------------------------------------------------------------*/
-#ifndef BOOST_ITL_TYPE_TRAITS_NEUTRON_HPP_JOFA_080912
-#define BOOST_ITL_TYPE_TRAITS_NEUTRON_HPP_JOFA_080912
-
-#include <boost/itl/type_traits/type_to_string.hpp>
-
-namespace boost{ namespace itl
-{
- template <class Type> struct identity_element
- {
- static Type value();
- Type operator()()const { return value(); }
- };
-
- template <class Type>
- inline Type identity_element<Type>::value()
- {
- return Type();
- }
-
- template<>
- inline std::string unary_template_to_string<identity_element>::apply() { return "0"; }
-
-}} // namespace boost itl
-
-#endif
-
-
Deleted: sandbox/itl/boost/itl/type_traits/unon.hpp
==============================================================================
--- sandbox/itl/boost/itl/type_traits/unon.hpp 2010-10-08 07:48:56 EDT (Fri, 08 Oct 2010)
+++ (empty file)
@@ -1,36 +0,0 @@
-/*-----------------------------------------------------------------------------+
-Copyright (c) 2008-2009: Joachim Faulhaber
-+------------------------------------------------------------------------------+
- Distributed under the Boost Software License, Version 1.0.
- (See accompanying file LICENCE.txt or copy at
- http://www.boost.org/LICENSE_1_0.txt)
-+-----------------------------------------------------------------------------*/
-#ifndef BOOST_ITL_TYPE_TRAITS_UNON_HPP_JOFA_080912
-#define BOOST_ITL_TYPE_TRAITS_UNON_HPP_JOFA_080912
-
-#include <string>
-#include <boost/itl/type_traits/identity_element.hpp>
-#include <boost/itl/type_traits/succ_pred.hpp>
-
-namespace boost{ namespace itl
-{
- template <class Type> struct unit_element{ static Type value(); };
-
- template<> inline bool unit_element<bool>::value() { return true; }
- template<> inline float unit_element<float>::value() { return 1.0; }
- template<> inline double unit_element<double>::value() { return 1.0; }
- template<> inline long double unit_element<long double>::value()
- { return 1.0; }
-
- // Smallest 'visible' string that is greater than the empty string.
- template <>
- inline std::string unit_element<std::string>::value(){ return std::string(" "); }
-
- template <class Type>
- inline Type unit_element<Type>::value(){ return succ(identity_element<Type>::value()); }
-
-}} // namespace boost itl
-
-#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