[cfe-dev] [llvm-commits] [llvm] r158787 - in /llvm/trunk:
kim.grasman at gmail.com
Thu Jun 28 03:54:13 PDT 2012
On Wed, Jun 27, 2012 at 11:53 PM, Ahmed Charles <ahmedcharles at gmail.com> wrote:
> MSVC's extern template feature is mostly the same as what is
> standardized. However, it was implemented before it was considered for
> standardization and VC11 is the first version that implements the
> standardized behavior.
> The big difference is that you don't need the ifdef around the extern
> in header, because the standard allows you to have:
> extern template Holder<int>;
> template Holder<int>;
> Versions of MSVC before 11 require that you not have the extern before
> the explicit instantiation.
Excellent, that's the detail I was missing, then! Thanks for explaining.
More information about the cfe-dev