Re: [std-discussion] Templatized virtual functions

1,454 views
Skip to first unread message

Thiago Macieira

unread,
Apr 24, 2019, 10:02:27 PM4/24/19
to std-dis...@isocpp.org
On Wednesday, 24 April 2019 09:16:50 PDT Ritwik Das via Std-Discussion wrote:
> So why would explicit instantiation of function templates work in this case:
>
> class Base
> {
> template<typename T>
> virtual int func() = 0;
> };

Because they wouldn't. The code above does not compile.

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel System Software Products



Reply all
Reply to author
Forward
0 new messages