On Mon, 23 Nov 2020 at 06:39, Ming Cheng via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > > g++ std::variant seems can't support user class with std::atomic/std::mutex variable member > https://stackoverflow.com/q/64963565/14492198?sem=2 You haven't provided enough information for anybody to help you.