Re: [Boost-bugs] [Boost C++ Libraries] #9811: boost/boost/chrono/duration.hpp:355:56: error: call to non-constexpr function 'static std::numeric_limits<float>::_Ty std::numeric_limits<float>::max()' /home/zosun/input_service/inputservices-core-service/other/boost/boost/chrono/duration.hpp: In static member function 'static constexpr double boost::chrono::detail::chrono_numeric_limits<double, true>::lowest()':

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9811: boost/boost/chrono/duration.hpp:355:56: error: call to non-constexpr function 'static std::numeric_limits<float>::_Ty std::numeric_limits<float>::max()' /home/zosun/input_service/inputservices-core-service/other/boost/boost/chrono/duration.hpp: In static member function 'static constexpr double boost::chrono::detail::chrono_numeric_limits<double, true>::lowest()':
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-19 07:02:31


#9811: boost/boost/chrono/duration.hpp:355:56: error: call to non-constexpr
function 'static std::numeric_limits<float>::_Ty
std::numeric_limits<float>::max()' /home/zosun/input_service/inputservices-
core-service/other/boost/boost/chrono/duration.hpp: In static member
function 'static constexpr double
boost::chrono::detail::chrono_numeric_limits<double, true>::lowest()':
-------------------------------+---------------------
  Reporter: szj087@… | Owner: viboes
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: chrono
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------

Comment (by viboes):

 The definition of


 {{{
     template <>
     struct chrono_numeric_limits<float,true> {
         static BOOST_CHRONO_LIB_CONSTEXPR float lowest()
 BOOST_CHRONO_LIB_NOEXCEPT_OR_THROW
         {
             return -(std::numeric_limits<float>::max) ();
         }
     };
 }}}

 where

 {{{
 #if defined( BOOST_NO_CXX11_NUMERIC_LIMITS )
 #define BOOST_CHRONO_LIB_CONSTEXPR
 #elif defined(_LIBCPP_VERSION) && !defined(_LIBCPP_CONSTEXPR)
   #define BOOST_CHRONO_LIB_CONSTEXPR
 #else
   #define BOOST_CHRONO_LIB_CONSTEXPR BOOST_CONSTEXPR
 #endif
 }}}


 Please, could you tell me which macro is defined for the library that I
 can check so that BOOST_CHRONO_LIB_CONSTEXPR is defined as


 {{{
   #define BOOST_CHRONO_LIB_CONSTEXPR

 }}}
 ?

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