C++ Logo


Advanced search

Ambiguity in the definitions of the explicit instantiation declaration and the explicit instantiation definition

From: Vladimir Grigoriev <vlad.moscow_at_[hidden]>
Date: Fri, 02 Aug 2019 18:31:51 +0300
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

Received on 2019-08-02 10:33:52