Is the following legal in C++?
As far as I can tell, Reference has a trivial destructor, so it should be legal. But I thought references can\'t be r
Reference
You aren't rebinding a reference, you're creating a new object in the memory of another one with a placement new. Since the destructor of the old object was never run I think this would be undefined behavior.