Re:Defining interfaces in C++ with ‘concepts’ (C++20)
by seanhunter on Wednesday April 19, 2023 @01:37PM
(#35630986)
Right. For starters, from the very beginning C++ has supported function templates which take native types. So you don't even necessarily have any kind of pointer you could add a vtable to even if you wanted to. Then add to that the guarantee[1] about pod types being directly compatible with C which as you say I don't see how it owuld be possible to do.
[1] which has always been strong even before there was an actual ISO/ANSI standard
[1] which has always been strong even before there was an actual ISO/ANSI standard