我有一个真实的情况,可以用下面的例子来概括:templatestructNotifier{voidadd_listener(ListenerType&){}};structTimeListener{};structSpaceListener{};structA:publicNotifier,publicNotifier{};structB:TimeListener{};intmain(){Aa;Bb;a.add_listener(b);//whyisambiguous?return0;}为什么B对编译器来说并不明显?是TimeListener,因此唯一可能的重载解决方案是Notifie