I am trying to make the inset hierarchy more immune to splicing and wrong usage.
In mathed this construct is used *this = SomeClass(foo); (or the variant this->operator(SomeClass(foo)) ) My method of avoiding splicing and wrong usage does not like this very much... so I have replaced this with: this->~SomeClass(); new (this) SomeClass(foo); Does this work as intended? Or am I just way off? (the best would of course be if neither of these constructs were used, and that we had more simple code in the first place) -- Lgb