rigtorp / MPMCQueue

A bounded multi-producer multi-consumer concurrent queue written in C++11
MIT License
1.15k stars 159 forks source link

Compile errors #23

Closed ghost closed 2 years ago

ghost commented 3 years ago

Using GNU g++ 4.8.5/Centos 7, I get the following compile errors when trying to compile a fresh clone of MPMCQueue. Can you offer assistance?

MPMCQueue.h:264:56: error: missing binary operator before token "("

if defined(has_cpp_attribute) && has_cpp_attribute(no_unique_address)

MPMCQueue.h:58:13: error: ‘bad_array_new_length’ is not a member of ‘std’ throw std::bad_array_new_length();

rigtorp commented 3 years ago

I haven't tested on such an old compiler and do not plan on supporting it. Should be easy for you to fix those errors.