On Tue, Apr 21, 2009 at 9:02 AM, Alexei Sheplyakov <varg@metalica.kh.ua> wrote:
The same happen for const/non-const (forward declare as non-const, but define as const).
Very interesting. [basic.type.qualifier] says:
\begin{quote} The cv-qualified or cv-unqualified versions of a type are distinct types; however, they shall have the same representation and alignment requirements (3.9)^46)
46) The same representation and alignment requirements are meant to imply interchangeability as arguments to functions, return values from functions, and members of unions. \end{quote}
I don't quite understand how it's possible for cv-qualified and non-cv-qualified type to have different mangled names without violating the above requirements.
Anyway, please submit a patch.
Sorry, I won't. I don't see why I would help your project(s), given the recent GPL violation claims. Michael.