Re: [Boost-bugs] [Boost C++ Libraries] #3859: [Boost.utility]

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3859: [Boost.utility]
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-25 21:34:16


#3859: [Boost.utility]
---------------------------------+------------------------------------------
 Reporter: achinkoff@… | Owner: no-maintainer
     Type: Feature Requests | Status: new
Milestone: Boost 1.42.0 | Component: utility
  Version: Boost 1.41.0 | Severity: Optimization
 Keywords: |
---------------------------------+------------------------------------------

Comment(by achinkoff@…):

 {{{
 @@ -13,7 +13,7 @@
        */

      template<bool> class CTAssert;
 - template<> class CTAssert<false>{ };
 + template<> class CTAssert<true>{ };

      /**
        See http://www.research.ibm.com/designpatterns/pubs/ph-jun96.txt
 @@ -39,8 +39,8 @@
          SingletonDestroyer()
          {
              typedef typename boost::is_array<Doomed>::type
 DoomedArrayType;
 - CTAssert<DoomedArrayType::value>
 - ____DOOMED_SINGLETON_MUST_NOT_BE_ARRAY____;
 + bool assert_me = (DoomedArrayType::value == false);
 + CTAssert<assert_me>
 ____DOOMED_SINGLETON_MUST_NOT_BE_ARRAY____;
              /**
               Suppress unused variable warning
               */
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3859#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:02 UTC