C++ function signature template parameter mangling issue
Daniel Murphy via Digitalmars-d
digitalmars-d at puremagic.com
Mon Feb 16 17:21:39 PST 2015
"Benjamin Thaut" wrote in message news:mbtena$2n46$1 at digitalmars.com...
> I understand that "void function()" is actually a function pointer and
> thus the mangling is "correct". But in what way would you actually able
> to mirror the C++ declaration of ezDelegate? Does it even work? This
> would be a central part of my interop with C++ so making it work would
> be nice.
struct X(T) { pragma(msg, X.stringof); }
void main()
{
X!(typeof(*(void function()).init)) x;
}
More information about the Digitalmars-d
mailing list