[Issue 7897] Problem with alias template parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 20 11:51:59 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7897
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> 2012-04-20 11:52:56 PDT ---
========
// !!! getMember doesn't work here...
HookupEngineFunction!( __traits( getMember, s, m ) )( pImports );
========
This is a similar issue. s here is a variable, and getMember is expecting a
type. Rewriting as:
HookupEngineFunction!( __traits( getMember, typeof(s), m ) )( pImports );
gets past that. But then we're back to the previous issue, no 'this' pointer at
compile time.
This is not a compiler bug, either.
I suspect what you are doing is trying to do C++ "pointers to members". Perhaps
this will help:
http://www.drdobbs.com/blogs/cpp/231600610
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list