Opened 9 years ago

Last modified 8 years ago

#9811 closed Bugs

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()': — at Version 3

Reported by: szj087@… Owned by: viboes
Milestone: Boost 1.56.0 Component: chrono
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description (last modified by viboes)

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

Change History (3)

comment:1 by Steven Watanabe, 9 years ago

Component: Nonechrono
Owner: set to viboes

comment:2 by viboes, 9 years ago

Description: modified (diff)

comment:3 by viboes, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.