Subject: Ambiguity in the definitions of the explicit instantiation declaration and the explicit instantiation definition
From: Vladimir Grigoriev (vlad.moscow_at_[hidden])
Date: 2019-08-02 10:31:51
In the p.#2 of the sectionÂ 13.8.2 Explicit instantiation (C++20) there is written
There are two forms of explicit instantiation: an explicit instantiation definition and an explicit instantiation declaration. An explicit instantiation declaration begins with the extern keyword.
However then in the p.#6 there is written
Despite its syntactic form, the declaration in an explicit-instantiation for a variable is not itself a definition and does not conflict with the definition instantiated by an explicit instantiation definition for that variable.
So it seems these two quotes confuse readers of the Standard.
With best regards,
Vlad from Moscow
You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or http://ru.stackoverflow.com
STD-DISCUSSION list run by email@example.com
Older Archives on Google Groups