Subject: [Boost-bugs] [Boost C++ Libraries] #6820: make_big_value() in big_constant.hpp uses constexpr incorrectly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-22 17:59:08
#6820: make_big_value() in big_constant.hpp uses constexpr incorrectly
-------------------------------------+--------------------------------------
Reporter: eric_niebler | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: Boost 1.50.0 | Component: math
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
This error is breaking the Boost.Accumulators test when compiled with
recent clang builds that support constexpr.
{{{
In file included from /Users/niji/Boosty/boost-
trunk/boost/math/special_functions/log1p.hpp:19:
/Users/niji/Boosty/boost-trunk/boost/math/tools/big_constant.hpp:34:11:
error: cannot initialize return object of type 'char *' with an lvalue of
type 'const char *'
return s;
^
/Users/niji/Boosty/boost-trunk/boost/math/tools/big_constant.hpp:32:39:
error: no return statement in constexpr function
inline BOOST_CONSTEXPR_OR_CONST char* make_big_value(long double, const
char* s, mpl::false_ const&, mpl::true_ const&)
^
2 errors generated.
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6820> 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:09 UTC