Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68799 - sandbox/type_traits/boost/type_traits/detail
From: frederic.bron_at_[hidden]
Date: 2011-02-12 04:17:41


Author: bronf
Date: 2011-02-12 04:17:39 EST (Sat, 12 Feb 2011)
New Revision: 68799
URL: http://svn.boost.org/trac/boost/changeset/68799

Log:
operator traits: workaround for msvc
Text files modified:
   sandbox/type_traits/boost/type_traits/detail/has_binary_operator.hpp | 6 +++---
   sandbox/type_traits/boost/type_traits/detail/has_postfix_operator.hpp | 6 +++---
   sandbox/type_traits/boost/type_traits/detail/has_prefix_operator.hpp | 6 +++---
   3 files changed, 9 insertions(+), 9 deletions(-)

Modified: sandbox/type_traits/boost/type_traits/detail/has_binary_operator.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/detail/has_binary_operator.hpp (original)
+++ sandbox/type_traits/boost/type_traits/detail/has_binary_operator.hpp 2011-02-12 04:17:39 EST (Sat, 12 Feb 2011)
@@ -48,11 +48,11 @@
    T &make();
 }
 
+struct returns_void_t {};
+template <typename T> int operator,(T const &, returns_void_t);
+
 template < typename LHS, typename RHS >
 struct BOOST_JOIN(BOOST_TT_TRAIT_NAME,_returns_void) {
- struct returns_void_t {
- template <typename T> friend int operator,(T const &, returns_void_t);
- };
    static ::boost::type_traits::yes_type returns_void(returns_void_t);
    static ::boost::type_traits::no_type returns_void(int);
    BOOST_STATIC_CONSTANT(bool, value = (sizeof(::boost::type_traits::yes_type)==sizeof(returns_void((make<LHS>() BOOST_TT_TRAIT_OP make<RHS>(),returns_void_t())))));

Modified: sandbox/type_traits/boost/type_traits/detail/has_postfix_operator.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/detail/has_postfix_operator.hpp (original)
+++ sandbox/type_traits/boost/type_traits/detail/has_postfix_operator.hpp 2011-02-12 04:17:39 EST (Sat, 12 Feb 2011)
@@ -44,11 +44,11 @@
    T &make();
 }
 
+struct returns_void_t {};
+template <typename T> int operator,(T const &, returns_void_t);
+
 template < typename LHS >
 struct BOOST_JOIN(BOOST_TT_TRAIT_NAME,_returns_void) {
- struct returns_void_t {
- template <typename T> friend int operator,(T const &, returns_void_t);
- };
    static ::boost::type_traits::yes_type returns_void(returns_void_t);
    static ::boost::type_traits::no_type returns_void(int);
    BOOST_STATIC_CONSTANT(bool, value = (sizeof(::boost::type_traits::yes_type)==sizeof(returns_void((make<LHS>() BOOST_TT_TRAIT_OP,returns_void_t())))));

Modified: sandbox/type_traits/boost/type_traits/detail/has_prefix_operator.hpp
==============================================================================
--- sandbox/type_traits/boost/type_traits/detail/has_prefix_operator.hpp (original)
+++ sandbox/type_traits/boost/type_traits/detail/has_prefix_operator.hpp 2011-02-12 04:17:39 EST (Sat, 12 Feb 2011)
@@ -47,11 +47,11 @@
    T &make();
 }
 
+struct returns_void_t {};
+template <typename T> int operator,(T const &, returns_void_t);
+
 template < typename RHS >
 struct BOOST_JOIN(BOOST_TT_TRAIT_NAME,_returns_void) {
- struct returns_void_t {
- template <typename T> friend int operator,(T const &, returns_void_t);
- };
    static ::boost::type_traits::yes_type returns_void(returns_void_t);
    static ::boost::type_traits::no_type returns_void(int);
    BOOST_STATIC_CONSTANT(bool, value = (sizeof(::boost::type_traits::yes_type)==sizeof(returns_void((BOOST_TT_TRAIT_OP make<RHS>(),returns_void_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