Bug 5772 – Tuple containing typedefed value causes error in format.d

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2011-03-23T12:48:00Z
Last change time
2011-08-29T01:37:09Z
Assigned to
nobody
Creator
magnus
See also
http://d.puremagic.com/issues/show_bug.cgi?id=5825

Comments

Comment #0 by magnus — 2011-03-23T12:48:08Z
Sample program: import std.typecons; typedef uint oid_t; void main() { // Tuple!(uint,uint) key; // Works Tuple!(oid_t,oid_t) key; // Doesn't work } Error observed when compiling when using DMD 2.052: /path/to/src/phobos/std/format.d(1579): Error: function std.format.formatValue!(Appender!(string),oid_t,immutable(char)).formatValue is deprecated /path/to/src/phobos/std/format.d(306): Error: template instance std.format.formatGeneric!(Appender!(string),oid_t,immutable(char)) error instantiating /path/to/src/phobos/std/typecons.d(507): instantiated from here: formattedWrite!(Appender!(string),immutable(char),oid_t)
Comment #1 by yebblies — 2011-08-29T01:37:09Z
*** This issue has been marked as a duplicate of issue 5825 ***