C++ Logo

STD-DISCUSSION

Advanced search

Subject: Re: C++ 20: Member templates. Is there a typo in the following example?
From: Andrew Schepler (aschepler_at_[hidden])
Date: 2019-08-24 10:27:13


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


STD-DISCUSSION list run by herb.sutter at gmail.com

Older Archives on Google Groups