cameron314 / concurrentqueue

A fast multi-producer, multi-consumer lock-free concurrent queue for C++11
Other
9.52k stars 1.66k forks source link

installed concurrentqueue using vcpkg, but can not make. #368

Open yangqun opened 7 months ago

yangqun commented 7 months ago

just include "concurrentqueue/concurrentqueue.h" when cmake program errors appears: /opt/vcpkg/installed/x64-linux/include/concurrentqueue/concurrentqueue.h: In static member function ‘static U moodycamel::ConcurrentQueue<T, Traits>::create_array(moodycamel::ConcurrentQueue<T, Traits>::size_t)’: /opt/vcpkg/installed/x64-linux/include/concurrentqueue/concurrentqueue.h:3612:40: error: expected type-specifier before ‘;’ token 3612 | new (p + i) U(); | ^ /opt/vcpkg/installed/x64-linux/include/concurrentqueue/concurrentqueue.h: In static member function ‘static void moodycamel::ConcurrentQueue<T, Traits>::destroy_array(U, moodycamel::ConcurrentQueue<T, Traits>::size_t)’: /opt/vcpkg/installed/x64-linux/include/concurrentqueue/concurrentqueue.h:3622:48: error: expected identifier before ‘;’ token 3622 |