Opened 5 years ago
Closed 4 years ago
#13397 closed Bugs (fixed)
Supplies non-type argument to mpl::integral_c and breaks in gil/channel_algorithm.hpp:54
Reported by: | anonymous | Owned by: | Stefan Seefeld |
---|---|---|---|
Milestone: | Boost 1.68.0 | Component: | gil USE GITHUB |
Version: | Boost 1.65.0 | Severity: | Problem |
Keywords: | Cc: | Mateusz Loskot |
Description
--- 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<UnsignedIntegralChannel,-1> {}; ^ /usr/local/include/boost/gil/channel_algorithm.hpp:204:19: note: in instantiation of template class 'boost::gil::detail::unsigned_integral_max_value<unsigned long>' requested here if (src > unsigned_integral_max_value<uintmax_t>::value - div2) ^
boost-libs-1.65.1_1 on FreeBSD 11.1
Change History (5)
comment:1 by , 5 years ago
comment:3 by , 5 years ago
Component: | None → gil USE GITHUB |
---|---|
Owner: | set to |
comment:4 by , 4 years ago
Cc: | added |
---|
comment:5 by , 4 years ago
Milestone: | To Be Determined → Boost 1.68.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
This issue has been fixed in GIL released in Boost 1.68
https://github.com/boostorg/gil/commit/18eacb424baf69852bb24858e1b3a5c86e1f9033
Note:
See TracTickets
for help on using tickets.
Substituting
-1
withstatic_cast<UnsignedIntegralChannel>(-1)
helps.The project is
K-3D/k3d
on github.