Re: Binding C++ Value Type (Templates)

2015-02-15 Thread Benjamin Thaut via Digitalmars-d
Am 13.02.2015 um 19:40 schrieb Daniel Murphy: Benjamin Thaut wrote in message news:mzgymsfzrxbvffgcf...@forum.dlang.org... There are currently two problems with binding c++ value types and c++ value type templates. 1. Semantics are somewhat different. Copying / constructor / destructing /

Re: Binding C++ Value Type (Templates)

2015-02-15 Thread Benjamin Thaut via Digitalmars-d
Am 15.02.2015 um 13:59 schrieb Daniel Murphy: Benjamin Thaut wrote in message news:mbq03u$2h5v$1...@digitalmars.com... Well, it doesn't work for anything that is within an C++ namespace. If I remove the Test namespace everything works as expected. I think what you want is something along

Re: Binding C++ Value Type (Templates)

2015-02-15 Thread Daniel Murphy via Digitalmars-d
Benjamin Thaut wrote in message news:mbq03u$2h5v$1...@digitalmars.com... Well, it doesn't work for anything that is within an C++ namespace. If I remove the Test namespace everything works as expected. I think what you want is something along these lines: D: extern(C++, Test) { extern(D)

Re: Binding C++ Value Type (Templates)

2015-02-15 Thread Andrei Alexandrescu via Digitalmars-d
On 2/15/15 5:33 AM, Benjamin Thaut wrote: Maybe this should be documented on the Interfacing to C++ page. Pull request pliz pliz -- Andrei

Re: Binding C++ Value Type (Templates)

2015-02-15 Thread Benjamin Thaut via Digitalmars-d
Am 15.02.2015 um 17:25 schrieb Andrei Alexandrescu: On 2/15/15 5:33 AM, Benjamin Thaut wrote: Maybe this should be documented on the Interfacing to C++ page. Pull request pliz pliz -- Andrei Honestly, I'm currentyl preparing a really huge pull request for D (Dll support for windows) and

Binding C++ Value Type (Templates)

2015-02-13 Thread Benjamin Thaut via Digitalmars-d
There are currently two problems with binding c++ value types and c++ value type templates. 1. Semantics are somewhat different. Copying / constructor / destructing / operator overloading is a issue. 2. Only templates which are instantiated on the c++ side can be used. Now it would be nice

Re: Binding C++ Value Type (Templates)

2015-02-13 Thread Daniel Murphy via Digitalmars-d
Benjamin Thaut wrote in message news:mzgymsfzrxbvffgcf...@forum.dlang.org... There are currently two problems with binding c++ value types and c++ value type templates. 1. Semantics are somewhat different. Copying / constructor / destructing / operator overloading is a issue. 2. Only