On 16.03.24 01:47, Konstantin Shegunov wrote: > On Fri, Mar 15, 2024 at 10:48 PM Marc Mutz via Development > <development@qt-project.org <mailto:development@qt-project.org>> wrote: > > The member variable thing sounds very wrong. I'd be surprised if it ^^^^^^^^ > compiled. [...] > struct A > { > int foo(int); > }; > struct B > { > double foo(double); > }; > struct C : A, B > { > using A::foo; > using B::foo; > }; > > Which allows C to have `foo()` properly overloaded.
Function != variable ;-) -- Marc Mutz <marc.m...@qt.io> Principal Software Engineer The Qt Company Erich-Thilo-Str. 10 12489 Berlin, Germany www.qt.io Geschäftsführer: Mika Pälsi, Juha Varelius, Jouni Lintunen Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development