2 ms·
What if the object is to be mutable?
by kazinator 1y ago
What if the object is to be mutable?
- TuxSH 1y agoYou use constinit. But this means constexpr constructor (easy with 2-phase init, not too much of a problem for singleton objects), and trivial destruction