[Issue 5772] New: Tuple containing typedefed value causes error in format.d
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 23 12:51:28 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5772
Summary: Tuple containing typedefed value causes error in
format.d
Product: D
Version: D2
Platform: Other
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: magnus at hetland.org
--- Comment #0 from Magnus Lie Hetland <magnus at hetland.org> 2011-03-23 12:48:08 PDT ---
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)
--
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