2 Feb
2021
2 Feb
'21
2:56 p.m.
Alexander Grund wrote:
What about classes, which have a non-inline function, e.g. the recently mentioned exception class with a non-inline `what()`? Wouldn't that need to be IMPORT/EXPORT declared for Windows? And VISIBLE for Linux (to be caught)? So would you need both here?
I suspect that for exported exception classes the right thing to do would indeed be to declare them both _DECL and _VISIBLE. _EXPORT mapping to _VISIBLE is kind of a hack (that often does the right thing) but it's not enough here. However, repeating the visibility attribute may be an error.