[Issue 18101] New: allow Tuple for BetterC
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 18 14:26:48 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=18101
Issue ID: 18101
Summary: allow Tuple for BetterC
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: changlon at gmail.com
=============== code ===============
import std.typecons : Tuple;
alias BOMSeq = Tuple!(int, "schema");
extern(C) int main(){
return 0;
}
=========================
../src/phobos/std/range/primitives.d(405): Error: static assert "Cannot put a
const(char)[] into a Appender!string."
../../src/phobos/std/format.d(1172): instantiated from here:
put!(Appender!string, const(char)[])
./../src/phobos/std/format.d(473): instantiated from here:
writeUpToNextSpec!(Appender!string)
../../src/phobos/std/format.d(5831): instantiated from here:
formattedWrite!(Appender!string, char, ulong, ulong)
../../src/phobos/std/typecons.d(542): instantiated from here:
format!(char, ulong, ulong)
test.d(4): instantiated from here: Tuple!(int, "schema")
--
More information about the Digitalmars-d-bugs
mailing list