[Issue 1900] Template overload sets & traits templates
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 10 03:59:03 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1900
--- Comment #3 from Bill Baxter <wbaxter at gmail.com> 2009-11-10 03:59:01 PST ---
(In reply to comment #2)
> Seems like there has not been an update on this one for quite along time. That
> is obviously a big issue, there should be a way to merge template overload
> sets, otherwise some great opportunities in using templates are lost. I am
> using templates in Qt bindings for specifying some compile-time information for
> types. My usecase is very similar to that provided by Bill. I would really like
> for this one to be resolved.
> Thanks.
I think I ended up working around this by putting the essential information
into the classes themselves, and then having one Traits template that covered
built-in types. Another big template did bunches of static structural tests to
tease the needed information out of a class.
In my case that was sufficient. But it's certainly more cumbersome to deal
with. Perhaps you can explain your case in a little more detail and we might
be able to come up with some workaround?
--
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