Closed TyOverby closed 10 years ago
module test; import cerealed; import std.stdio; struct Pair { string s1; int a; } void main() { auto p = Pair("foo", 5); int[Pair] map; map[p] = 105; auto ser = new Cerealiser(); ser ~= map; auto deser = new Decerealiser(ser.bytes); int[Pair] outcu = deser.value!(int[Pair]); writeln(outcu); }
Expected output: [Pair("foo", 5): 105] Actual output : [Pair("", 0): 105]
Fixed in the last commit.
Expected output: [Pair("foo", 5): 105] Actual output : [Pair("", 0): 105]