ref const array error

jdrewsen jdrewsen at nospam.com
Wed Jan 18 11:31:21 PST 2012


Recently the encoding.safeDecode stopped working for some of my 
existing code. This example outlines the issue:

import std.encoding;

void main(string[] args) {
    auto e = EncodingScheme.create("utf-8");
    auto a = new byte[100];
    e.safeDecode(a);
}

Results in:

Error: function std.encoding.EncodingScheme.safeDecode (ref 
const(ubyte)[] s) const is not callable using argument types 
(byte[])

Isn't this an error in the compiler?

/Jonas



More information about the Digitalmars-d mailing list