C++ function signature template parameter mangling issue
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 17 00:15:36 PST 2015
On 2/16/2015 11:42 PM, Daniel Murphy wrote:
> "Benjamin Thaut" wrote in message news:mbuok2$pn5$1 at digitalmars.com...
>
>> Error: ICE: Unsupported type void()
>>
>> So close...
>
> Good news is that that's a compiler bug and not a language limitation. Although
> allowing you to pass a function type to a template in the first place might also
> be a compiler bug.
>
> D/C++ interop really works best when you can massage the C++ side a little.
True, it might be easier to adjust the C++ side so it takes a pointer to a
function type.
More information about the Digitalmars-d
mailing list