[Boost-bugs] [Boost C++ Libraries] #2537: Minor documenation bug regarding BOOST_STATIC_ASSERT(std::numeric_limits<UnsignedInt>::is_signed)

Subject: [Boost-bugs] [Boost C++ Libraries] #2537: Minor documenation bug regarding BOOST_STATIC_ASSERT(std::numeric_limits<UnsignedInt>::is_signed)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-11-26 05:52:27


#2537: Minor documenation bug regarding
BOOST_STATIC_ASSERT(std::numeric_limits<UnsignedInt>::is_signed)
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: matias
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: Documentation
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 The page:
 http://www.boost.org/doc/libs/1_37_0/doc/html/boost_staticassert.html

 Has the following example:
 #include <climits>
 #include <boost/static_assert.hpp>

 template <class UnsignedInt>
 class myclass
 {
 private:
    BOOST_STATIC_ASSERT((std::numeric_limits<UnsignedInt>::digits >= 16)
                         &&
 std::numeric_limits<UnsignedInt>::is_specialized
                         && std::numeric_limits<UnsignedInt>::is_integer
                         && !std::numeric_limits<UnsignedInt>::is_signed);
 public:
    /* details here */
 };

 ----------------------------

 The problem being that <limits> provides ::is_signed,
 rather than <climits>

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2537>
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:49:59 UTC