3 alias Zoo = Foo10056!(false, false, 1);
6 struct Foo10056(bool S, bool L, size_t N)
10 Appender10056!(string) w;
11 char[] buf; put10056(w, buf);
15 public bool opEquals(T)(T other) //const
16 //If you add const, also fails to compile with 2.062.
18 alias Foo10056!(typeof(this), T, "CMP") P;
23 template Foo10056(T, U, string OP)
25 static if (T.ISEMPTY && U.ISEMPTY)
30 alias Foo10056 = Foo10056!(false, false, 0);
33 /**********************************************/
35 void put10056(R, E)(ref R r, E e)
37 static if (is(typeof(r.put(e))))
43 static assert(false, "Cannot put a "~E.stringof~" into a "~R.stringof);
47 struct Appender10056(A : T[], T)
49 private template canPutItem(U)
51 enum bool canPutItem = is(U : T);
53 private template canPutRange(R)
55 enum bool canPutRange = is(typeof(Appender10056.init.put(R.init[0])));
58 void put(U)(U item) if (canPutItem!U)
60 char[T.sizeof == 1 ? 4 : 2] encoded;
63 void put(R)(R items) if (canPutRange!R)