can't use extern(C++,std) in a module that imports std.whatever

Timothee Cour via Digitalmars-d digitalmars-d at puremagic.com
Mon Feb 13 00:21:38 PST 2017


https://issues.dlang.org/show_bug.cgi?id=17178

dmd -c -o- bar.d
Error: namespace bar.std conflicts with import bar.std at bar.d(2)

```
module bar;
import std.exception;
extern (C++, std) { struct Foo1 { } }
```

this seems like a serious blocker to interface with C++ ; what's a
workaround?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20170213/85b27ca2/attachment.html>


More information about the Digitalmars-d mailing list