Boost C++ Libraries: Ticket #6820: make_big_value() in big_constant.hpp uses constexpr incorrectly https://svn.boost.org/trac10/ticket/6820 <p> This error is breaking the Boost.Accumulators test when compiled with recent clang builds that support constexpr. </p> <pre class="wiki">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&amp;, mpl::true_ const&amp;) ^ 2 errors generated. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6820 Trac 1.4.3 John Maddock Sun, 22 Apr 2012 18:33:43 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6820#comment:1 https://svn.boost.org/trac10/ticket/6820#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Nod. I spotted that earlier, hopefully it should be fixed now. </p> Ticket Eric Niebler Sun, 22 Apr 2012 18:49:58 GMT <link>https://svn.boost.org/trac10/ticket/6820#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6820#comment:2</guid> <description> <p> Since it's a specifier and not a type modifier, I'm pretty certain that putting it after the return type is invalid. So this: </p> <pre class="wiki">inline const char* BOOST_CONSTEXPR_OR_CONST make_big_value(... </pre><p> should be: </p> <pre class="wiki">inline BOOST_CONSTEXPR const char* make_big_value(... </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 23 Apr 2012 15:13:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6820#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6820#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/78160" title="Yet another try at getting constexp usage correct! Refs #6820.">[78160]</a>) Yet another try at getting constexp usage correct! Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6820" title="#6820: Bugs: make_big_value() in big_constant.hpp uses constexpr incorrectly (closed: fixed)">#6820</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>