Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73779 - sandbox/conversion/libs/conversion_ext/test
From: vicente.botet_at_[hidden]
Date: 2011-08-15 12:51:03


Author: viboes
Date: 2011-08-15 12:51:02 EDT (Mon, 15 Aug 2011)
New Revision: 73779
URL: http://svn.boost.org/trac/boost/changeset/73779

Log:
conversion: remove enable_functor
Text files modified:
   sandbox/conversion/libs/conversion_ext/test/builtins.cpp | 31 -------------------------------
   1 files changed, 0 insertions(+), 31 deletions(-)

Modified: sandbox/conversion/libs/conversion_ext/test/builtins.cpp
==============================================================================
--- sandbox/conversion/libs/conversion_ext/test/builtins.cpp (original)
+++ sandbox/conversion/libs/conversion_ext/test/builtins.cpp 2011-08-15 12:51:02 EDT (Mon, 15 Aug 2011)
@@ -252,34 +252,6 @@
     }
 }
 
-template <typename T, typename Enable = void>
-struct is_lazy
- : boost::mpl::false_
-{};
-
-template <typename T, typename Enabled=void>
-struct enable_functor : boost::mpl::false_ {};
-
-template <typename T>
-struct is_lazy<T, typename boost::enable_if<boost::phoenix::is_actor<T> >::type >
- : boost::mpl::true_
-{};
-template <typename T>
-struct enable_functor<T, typename boost::enable_if<boost::phoenix::is_actor<T> >::type> : boost::mpl::true_ {};
-
-template <typename T>
-void assert_enable_functor(T const&) {
- BOOST_STATIC_ASSERT(is_lazy<T>::type::value==true);
- BOOST_STATIC_ASSERT(enable_functor<T>::type::value==true);
- BOOST_STATIC_ASSERT(boost::conversion::enable_functor<T>::type::value==true);
-}
-
-template <typename T>
-void assert_not_enable_functor(T const&) {
- //BOOST_STATIC_ASSERT(boost::conversion::enable_functor<T>::type::value==false);
- BOOST_STATIC_ASSERT(is_lazy<T>::type::value==false);
-}
-
 void fp_convert_to() {
   {
     //char c=0;
@@ -289,9 +261,6 @@
 
     using boost::phoenix::placeholders::_1;
 
- //s=boost::conversion::fp::convert_to<short>(_1)(l) ;
- assert_not_enable_functor(i);
- assert_enable_functor(_1);
     s=boost::conversion::convert_to<short>(_1)(l) ;
     BOOST_TEST(s==3);
 


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