pagmo2 icon indicating copy to clipboard operation
pagmo2 copied to clipboard

[BUG]Compiler error with boost 1.89 and Clang++19

Open aulwes opened this issue 3 months ago • 1 comments

I tried to build but got this compiler error:

Consolidate compiler generated dependencies of target pagmo [ 1%] Building CXX object CMakeFiles/pagmo.dir/src/island.cpp.o pagmo2/src/island.cpp:204:45: error: constraints not satisfied for class template 'queue' [with T = pagmo::detail::task_queue, Options = <>] 204 | static auto tq_cache = boost::lockfree::queue<task_queue>(); | ^~~~~~~~~~~~~~~~~ boost_1_89_0/install/include/boost/lockfree/queue.hpp:86:15: note: because 'std::is_copy_assignable_vpagmo::detail::task_queue , std::is_trivially_assignable_v<pagmo::detail::task_queue &, pagmo::detail::task_queue> , std::is_trivially_destructible_vpagmo::detail::task_queue' evaluated to false 86 | requires( std::is_copy_assignable_v< T >, | ^

Looking at task_queue.hpp, the copy/assignment ctors are deleted. What can I do for a workaround for now?

aulwes avatar Sep 19 '25 15:09 aulwes

looks fine with clang 21

jschueller avatar Oct 27 '25 18:10 jschueller