On Friday, 13 February 2015 at 13:03:18 UTC, Kagamin wrote:
It's not like you're free to choose, because struct and class can use different mangling.
I'm not sure I get your point. In C++ classes without vtables are exactly like structs. Also I don't see any difference between a struct or a class name mangling on Gnu Linux.
class/struct S{};
S foo();
foo gets mangled "_Z3foov" if S is a struct or a class.
What did I miss ? Do you have compelling examples ?
