[Issue 8288] New: immutable(char)** is not convertable to const(char)**
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 23 03:57:41 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8288
Summary: immutable(char)** is not convertable to const(char)**
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: admin at dav1d.de
--- Comment #0 from David <admin at dav1d.de> 2012-06-23 04:00:05 PDT ---
This Code:
void foo(const(char)** arg) {}
void main() {
string yay = "fun";
auto yay_data = yay.ptr;
foo(&yay_data);
}
Produces this Error:
Error: function compileme406.foo (const(char)** arg) is not callable using
argument types (immutable(char)**)
Error: cannot implicitly convert expression (& yay_data) of type
immutable(char)** to const(char)**
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list