Boost C++ Libraries: Ticket #13397: Supplies non-type argument to mpl::integral_c and breaks in gil/channel_algorithm.hpp:54 https://svn.boost.org/trac10/ticket/13397 <pre class="wiki">--- k3dsdk/CMakeFiles/k3dsdk.dir/utility_gl.cpp.o --- In file included from /usr/ports/graphics/k3d/work/k3d-7111d0e/k3dsdk/utility_gl.cpp:37: In file included from /usr/ports/graphics/k3d/work/k3d-7111d0e/k3dsdk/utility_gl.h:28: In file included from /usr/ports/graphics/k3d/work/k3d-7111d0e/k3dsdk/bitmap.h:36: In file included from /usr/local/include/boost/gil/gil_all.hpp:26: /usr/local/include/boost/gil/channel_algorithm.hpp:54:85: error: non-type template argument evaluates to -1, which cannot be narrowed to type 'unsigned long' [-Wc++11-narrowing] struct unsigned_integral_max_value : public mpl::integral_c&lt;UnsignedIntegralChannel,-1&gt; {}; ^ /usr/local/include/boost/gil/channel_algorithm.hpp:204:19: note: in instantiation of template class 'boost::gil::detail::unsigned_integral_max_value&lt;unsigned long&gt;' requested here if (src &gt; unsigned_integral_max_value&lt;uintmax_t&gt;::value - div2) ^ </pre><p> boost-libs-1.65.1_1 on FreeBSD 11.1 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13397 Trac 1.4.3 anonymous Sun, 14 Jan 2018 18:42:11 GMT <link>https://svn.boost.org/trac10/ticket/13397#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13397#comment:1</guid> <description> <p> Substituting <code>-1</code> with <code>static_cast&lt;UnsignedIntegralChannel&gt;(-1)</code> helps. </p> <p> The project is <code>K-3D/k3d</code> on github. </p> </description> <category>Ticket</category> </item> <item> <author>yuri <yuri@…></author> <pubDate>Sun, 14 Jan 2018 18:49:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13397#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13397#comment:2</guid> <description> <p> The downstream bug report: <a class="ext-link" href="https://github.com/K-3D/k3d/issues/31"><span class="icon">​</span>https://github.com/K-3D/k3d/issues/31</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Kohei Takahashi</dc:creator> <pubDate>Mon, 15 Jan 2018 01:22:00 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/13397#comment:3 https://svn.boost.org/trac10/ticket/13397#comment:3 <ul> <li><strong>owner</strong> set to <span class="trac-author">Stefan Seefeld</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">gil USE GITHUB</span> </li> </ul> Ticket Mateusz Loskot Mon, 25 Jun 2018 13:39:51 GMT cc set https://svn.boost.org/trac10/ticket/13397#comment:4 https://svn.boost.org/trac10/ticket/13397#comment:4 <ul> <li><strong>cc</strong> <span class="trac-author">Mateusz Loskot</span> added </li> </ul> Ticket Mateusz Loskot Sat, 25 Aug 2018 08:16:11 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/13397#comment:5 https://svn.boost.org/trac10/ticket/13397#comment:5 <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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.68.0</span> </li> </ul> <p> This issue has been fixed in GIL released in Boost 1.68 </p> <p> <a class="ext-link" href="https://github.com/boostorg/gil/commit/18eacb424baf69852bb24858e1b3a5c86e1f9033"><span class="icon">​</span>https://github.com/boostorg/gil/commit/18eacb424baf69852bb24858e1b3a5c86e1f9033</a> </p> Ticket