What about an unsafe token on data members and base classes to indicate that they can have unsafe special member functions called from an unsafe context? This would let us embed std::mutex inside std2::mutex, and not worry about the former's unsafe interface.
What about an
unsafe
token on data members and base classes to indicate that they can have unsafe special member functions called from an unsafe context? This would let us embed std::mutex inside std2::mutex, and not worry about the former's unsafe interface.