chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.97k stars 1.22k forks source link

error: expected primary-expression before ‘(’ token 60 | decltype(query(declval<T>(), declval<Property>())) #1532

Open latale23 opened 1 month ago

latale23 commented 1 month ago

grep "#define BOOST_LIB_VERSION" /usr/include/boost/version.hpp

define BOOST_LIB_VERSION "1_74"

jammy@jammy:~/transmissionrobot2_dev$ colcon build --packages-select mission_pkg Starting >>> mission_pkg --- stderr: mission_pkg
In file included from /usr/include/boost/asio/query.hpp:22, from /usr/include/boost/asio/execution/blocking.hpp:26, from /usr/include/boost/asio/execution/any_executor.hpp:31, from /usr/include/boost/asio/execution.hpp:19, from /usr/include/boost/asio/system_executor.hpp:20, from /usr/include/boost/asio/associated_executor.hpp:22, from /usr/include/boost/asio.hpp:21, from /home/jammy/transmissionrobot2_dev/src/mission_pkg/include/mission_pkg/sync_http_client.hpp:4, from /home/jammy/transmissionrobot2_dev/src/mission_pkg/src/mission_node.cpp:18: /usr/include/boost/asio/traits/query_free.hpp:60:19: error: expected primary-expression before ‘(’ token 60 | decltype(query(declval(), declval())) | ^ /usr/include/boost/asio/traits/query_free.hpp:61:3: error: template argument 1 is invalid 61 | >::type> | ^ /usr/include/boost/asio/traits/query_free.hpp:61:10: error: template argument 3 is invalid 61 | >::type> | ^ gmake[2]: [CMakeFiles/mission_node.dir/build.make:76: CMakeFiles/mission_node.dir/src/mission_node.cpp.o] Error 1 gmake[1]: [CMakeFiles/Makefile2:137: CMakeFiles/mission_node.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2

Failed <<< mission_pkg [13.1s, exited with code 2]

Summary: 0 packages finished [13.6s] 1 package failed: mission_pkg 1 package had stderr output: mission_pkg