So what exactly is coming with extended C++ support?

Daniel N via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 14 23:29:39 PDT 2014


On Wednesday, 15 October 2014 at 06:18:48 UTC, Jacob Carlborg 
wrote:
> On 2014-10-15 01:01, Andrei Alexandrescu wrote:
>
>> Correct. Here's the syntax on the C++ side:
>> http://en.wikipedia.org/wiki/C++11#Extern_template -- Andrei
>
> "extern template class std::vector<MyClass>;
>
> which tells the compiler NOT to instantiate the template in 
> this translation unit."
>
> That sounds like the complete opposite of what's needed.


"C++03 has this syntax to oblige the compiler to instantiate a 
template:

template class std::vector<MyClass>;"


More information about the Digitalmars-d mailing list