C++ Logo

std-discussion

Advanced search

Re: C++ 20: Member templates. Is there a typo in the following example?

From: Andrew Schepler <aschepler_at_[hidden]>
Date: Sat, 24 Aug 2019 11:27:13 -0400
There are plenty of examples already which are valid translation units
but not valid complete programs. Though in this case I think another
TU would need an explicit instantiation. So it might not exactly be an
error, but I agree it would be an improvement to give the primary
member function template a definition, inside or outside the class
template definition.

-- Andrew Schepler

Received on 2019-08-24 10:29:29