Re: [Boost-bugs] [Boost C++ Libraries] #5637: use of mpl::print imposes default constructible requirement on argument

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5637: use of mpl::print imposes default constructible requirement on argument
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-24 01:15:46


#5637: use of mpl::print imposes default constructible requirement on argument
-------------------------------+--------------------------------------------
  Reporter: ramey | Owner: dave
      Type: Tasks | Status: new
 Milestone: To Be Determined | Component: mpl
   Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords: mpl print
-------------------------------+--------------------------------------------

Comment (by ramey):

 Managed to make it work for my GCC system as well !

 {{{
 template <class T>
 struct print
     : mpl::identity<T *>
 #if defined(__MWERKS__)
     , aux::print_base
 #endif
 {
 #if defined(BOOST_MSVC)
     enum { n = sizeof(T) + -1 };
 #elif defined(__MWERKS__)
     void f(int);
 #else
     enum {
         n =
 # if defined(__EDG_VERSION__)
            aux::dependent_unsigned<T>::value > -1
 # else
            sizeof(T) / 0//sizeof(T) > -1
 # endif
         };
 #endif
 };

 }}}

 Robert Ramey

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5637#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC