extended is_transparent_class to compilers without final support