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

2017-02-14 Thread Walter Bright via Digitalmars-d
On 2/13/2017 12:21 AM, Timothee Cour via Digitalmars-d wrote: what's a workaround? See https://issues.dlang.org/show_bug.cgi?id=13183

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

2017-02-13 Thread Nicholas Wilson via Digitalmars-d
On Monday, 13 February 2017 at 08:21:38 UTC, Timothee Cour wrote: 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

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

2017-02-13 Thread Timothee Cour via Digitalmars-d
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?