What is a state of an object after it was moved-from via a reference to its base class?

Viewed 222

Assume, there is a hierarchy of two classes:

class Base {};
class Foo: public Base {};

Which are used like this:

Foo foo;
Base &base = foo;
Base moved = std::move(base);

In what state is foo after such move? Does the Standard impose any requirements on limitations on such code?

2 Answers
Related