[Issue 12931] Make const, immutable, inout, and shared illegal as function attributes on the left-hand side of a function

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Oct 15 13:02:12 PDT 2014


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

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu

--- Comment #17 from Martin Nowak <code at dawg.eu> ---
Just had to fix openssl bindings.
https://github.com/MartinNowak/openssl/commit/b3a334b5bcea8afc7a68573d4363891e7e0bc422

Translating
    const EVP_CIPHER *EVP_rc4_hmac_md5(void);
to
    const EVP_CIPHER *EVP_rc4_hmac_md5();
instead of
    const(EVP_CIPHER)* EVP_rc4_hmac_md5();

It's a common mistake during C header translation.
Since 2.066.0 the compiler at least warns that const can only be applied to
member functions.

--


More information about the Digitalmars-d-bugs mailing list