C++ template name mangling

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 15 14:02:16 PDT 2014


On Fri, Aug 15, 2014 at 01:57:40PM -0700, Walter Bright via Digitalmars-d wrote:
> On 8/15/2014 1:53 PM, H. S. Teoh via Digitalmars-d wrote:
> >What are the limits to this, though? Obviously, anything involving
> >D-only features can't possibly work, like alias parameters, typesafe
> >variadics, etc..
> 
> That's right, it'd have to be the subset of template types that C++
> supports.

What would interfacing with C++ templates be like in practice? C++
templates have SFINAE, but D doesn't; so how would one translate a set
of C++ templates that rely on SFINAE to the equivalent D declarations
(inside extern(C++) blocks)?

I hope we won't need to add SFINAE to extern(C++) blocks...


T

-- 
Study gravitation, it's a field with a lot of potential.


More information about the Digitalmars-d mailing list