'B()' uses class B which will be inaccessible after move