max0x7ba / atomic_queue

C++ lockless queue.
MIT License
1.51k stars 180 forks source link

Atomics are not trivial #66

Closed CurTInq closed 7 months ago

CurTInq commented 7 months ago

Thats it. It was guaranteed that atomic integer specializations are trivially constructible until c++ 20, however this is not the case anymore. So this static_assert will fail starting with c++ 20 I ran into this while attempting to compile this under windows, microsoft stl library already follows the standard and reports assertion fail https://godbolt.org/z/9WeonahxW

max0x7ba commented 7 months ago

Oh, that's news to me, thank you for bringing that to my attention.

I'll have to bite the bullet and invoke the constructor, I guess 😬.