[cfe-dev] Template attributes lose their inherited flag on instantiations

Nico Rieck nico.rieck at gmail.com
Tue Apr 16 06:41:21 PDT 2013


On 16.04.2013 15:31, Rafael EspĂ­ndola wrote:
> Don't we apply dllexport only to variables and functions? How are you
> applying it to classes?

If it is applied to the class, then it automatically applies to all 
member functions and static fields. This is already implemented, by 
iterating over those members and giving them an inherited import/export 
attribute.
But as stated, this breaks for class templates. And the distinction is 
needed because specifying the attributes both on the class and a member 
is forbidden.

-Nico




More information about the cfe-dev mailing list