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

Lance Bachmeier <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Lance Bachmeier <[email protected]> ---
Can this be resolved by having ImportC generate a D overload? If const struct
Foo* is rewritten to Foo*, it should. This is a solution for this particular
example:

struct Foo;
void foo(Foo* x) {}
// ImportC generates this function when encountering const struct Foo*
void foo(const(Foo)* x) {
        foo(cast(Foo*) x);
}
void bar(const Foo* x) {
    foo(x);
}

--

Reply via email to