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-18 18:46:52


#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:
-------------------------------+---------------------
Description changed by viboes:

Old description:

> I am using QNX SDB660 GCC 4.7.3 to create QNX C++ project. It is very
> simple like that.
>

> {{{
> #include <boost/thread/recursive_mutex.hpp>
>
> int main(int argc, char *argv[]) {
> return EXIT_SUCCESS;
> }
>

> It reports the following error.
>
> In file included from boost/chrono/time_point.hpp:33:0,
> from boost/thread/lock_types.hpp:22,
> from boost/thread/pthread/recursive_mutex.hpp:13,
> from boost/thread/recursive_mutex.hpp:16,
> from /home/test/number/number.cc:1:
> boost/chrono/duration.hpp: In static member function 'static constexpr
> float boost::chrono::detail::chrono_numeric_limits<float,
> true>::lowest()':
> boost/chrono/duration.hpp:355:56: error: call to non-constexpr function
> 'static std::numeric_limits<float>::_Ty
> std::numeric_limits<float>::max()'
> boost/chrono/duration.hpp: In static member function 'static constexpr
> double boost::chrono::detail::chrono_numeric_limits<double,
> true>::lowest()':
> boost/chrono/duration.hpp:363:57: error: call to non-constexpr function
> 'static std::numeric_limits<double>::_Ty
> std::numeric_limits<double>::max()'
> boost/chrono/duration.hpp: In static member function 'static constexpr
> long double boost::chrono::detail::chrono_numeric_limits<long double,
> true>::lowest()':
> 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()'
> }}}
>

> Is it QNX related or general bug for boost?
>
> Thanks/Zongjun

New description:

 I am using QNX SDB660 GCC 4.7.3 to create QNX C++ project. It is very
 simple like that.


 {{{
 #include <boost/thread/recursive_mutex.hpp>

 int main(int argc, char *argv[]) {
         return EXIT_SUCCESS;
 }
 }}}

 It reports the following error.

 {{{
 In file included from boost/chrono/time_point.hpp:33:0,
                  from boost/thread/lock_types.hpp:22,
                  from boost/thread/pthread/recursive_mutex.hpp:13,
                  from boost/thread/recursive_mutex.hpp:16,
                  from /home/test/number/number.cc:1:
 boost/chrono/duration.hpp: In static member function 'static constexpr
 float boost::chrono::detail::chrono_numeric_limits<float,
 true>::lowest()':
 boost/chrono/duration.hpp:355:56: error: call to non-constexpr function
 'static std::numeric_limits<float>::_Ty std::numeric_limits<float>::max()'
 boost/chrono/duration.hpp: In static member function 'static constexpr
 double boost::chrono::detail::chrono_numeric_limits<double,
 true>::lowest()':
 boost/chrono/duration.hpp:363:57: error: call to non-constexpr function
 'static std::numeric_limits<double>::_Ty
 std::numeric_limits<double>::max()'
 boost/chrono/duration.hpp: In static member function 'static constexpr
 long double boost::chrono::detail::chrono_numeric_limits<long double,
 true>::lowest()':
 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()'
 }}}


 Is it QNX related or general bug for boost?

 Thanks/Zongjun

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