thezbyg / gpick

Advanced color picker written in C++ using GTK+ toolkit
BSD 3-Clause "New" or "Revised" License
381 stars 34 forks source link

build fails with boost 1.84 #226

Open ncopa opened 5 months ago

ncopa commented 5 months ago

Build fails with boost 1.84 on Alpine Linux edge:

[ 20%] Building CXX object CMakeFiles/gpick-dynv.dir/source/dynv/Xml.cpp.o
In file included from /usr/include/boost/endian/detail/endian_reverse.hpp:12,
                 from /usr/include/boost/endian/conversion.hpp:11,
                 from /home/ncopa/aports/community/gpick/src/gpick-0.3/source/dynv/Types.cpp:23:
/usr/include/boost/endian/conversion.hpp: In instantiation of 'constexpr EndianReversible boost::endian::conditional_reverse(EndianReversible) [with order From = boost::end
ian::order::little; order To = boost::endian::order::little; EndianReversible = float]':
/usr/include/boost/endian/conversion.hpp:166:76:   required from 'constexpr EndianReversible boost::endian::native_to_little(EndianReversible) [with EndianReversible = floa
t]'                                                                                   
/home/ncopa/aports/community/gpick/src/gpick-0.3/source/dynv/Types.cpp:124:41:   required from here
/usr/include/boost/endian/conversion.hpp:190:5: error: static assertion failed: std::is_class<EndianReversible>::value || detail::is_endian_reversible<EndianReversible>::va
lue                                    
  190 |     BOOST_ENDIAN_STATIC_ASSERT( std::is_class<EndianReversible>::value || detail::is_endian_reversible<EndianReversible>::value );
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~ 
/usr/include/boost/endian/conversion.hpp:190:5: note: '(((bool)std::integral_constant<bool, false>::value) || ((bool)std::integral_constant<bool, false>::value))' evaluates
 to false                                
gmake[2]: *** [CMakeFiles/gpick-dynv.dir/build.make:104: CMakeFiles/gpick-dynv.dir/source/dynv/Types.cpp.o] Error 1