Re: [Boost-bugs] [Boost C++ Libraries] #7479: Compiles fails with compilers supporting constexpr fails if the standard library doesn't provides the constexpr interface

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7479: Compiles fails with compilers supporting constexpr fails if the standard library doesn't provides the constexpr interface
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-28 02:21:53


#7479: Compiles fails with compilers supporting constexpr fails if the standard
library doesn't provides the constexpr interface
---------------------------+---------------------
  Reporter: viboes | Owner: viboes
      Type: Bugs | Status: closed
 Milestone: Boost 1.52.0 | Component: chrono
   Version: Boost 1.51.0 | Severity: Problem
Resolution: fixed | Keywords:
---------------------------+---------------------

Comment (by anonymous):

 It happens on my system. GNU 4.7.3, boost 1.55.

 In file included from /other/boost/boost/chrono/time_point.hpp:33:0,
                  from /other/boost/boost/thread/lock_types.hpp:22,
                  from
 /other/boost/boost/thread/pthread/recursive_mutex.hpp:13,
                  from /other/boost/boost/thread/recursive_mutex.hpp:16,
                  from /src/include/File1.hpp:14,
                  from /src/include/File2.hpp:13,
                  from /src/include/File3.hpp:12,
                  from /src/cpp/File3.cpp:8:
 /other/boost/boost/chrono/duration.hpp: In static member function 'static
 constexpr float boost::chrono::detail::chrono_numeric_limits<float,
 true>::lowest()':
 /other/boost/boost/chrono/duration.hpp:355:56: error: call to non-
 constexpr function 'static std::numeric_limits<float>::_Ty
 std::numeric_limits<float>::max()'
 /other/boost/boost/chrono/duration.hpp: In static member function 'static
 constexpr double boost::chrono::detail::chrono_numeric_limits<double,
 true>::lowest()':
 /other/boost/boost/chrono/duration.hpp:363:57: error: call to non-
 constexpr function 'static std::numeric_limits<double>::_Ty
 std::numeric_limits<double>::max()'
 /other/boost/boost/chrono/duration.hpp: In static member function 'static
 constexpr long double boost::chrono::detail::chrono_numeric_limits<long
 double, true>::lowest()':
 /other/boost/boost/chrono/duration.hpp:371:61: error: call to non-
 constexpr function 'static std::numeric_limits<long double>::_Ty
 std::numeric_limits<long double>::max()'

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7479#comment:4>
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:15 UTC