C++ boost now has a lock-free queue library:
https://github.com/boostorg/lockfree/tree/develop/include/boost/lockfree
It includes single-producer, single-consumer and multi-producer, multi-consumer queues.
Better performing libraries:
https://github.com/rigtorp/SPSCQueue
https://github.com/cameron314/concurrentqueue
https://github.com/max0x7ba/atomic_queue