For the Playstation platform, mimic MSVC in propagating dllexport/dllimport attributes
to an instantiated template base class.
This is particularly relevant in cases where the base class has static members that need to be shared between all instantiations:
template <class T>
class Base
{
public:
static unsigned int& foo()
{
static unsigned int S = 0xffffffff;
return S;
}
};
class __declspec(dllexport) A : public Base<A>
{
};BTW, this is unrelated to D145271
Would using getTargetInfo().shouldDLLImportComdatSymbols() be appropriate here now?