I am working on a single producer single consumer ring buffer implementation.I have two requirements:
The answer to your problem is std::aligned_storage. It can be used top level and for individual members of a class.