Cannot cast char[] to string.

Agustin agustin.l.alvarez at hotmail.com
Thu Nov 14 11:41:11 PST 2013


I'm trying to use http://dlang.org/phobos/std_net_curl.html and 
when i compile the same example i get:

cannot implicitly convert expression 
(get(cast(const(char)[])address, AutoProtocol())) of type char[] 
to string

string address = "http://dlang.org";
string _data = get(address);


More information about the Digitalmars-d-learn mailing list