Using is_base_of with Barton-Nackman