[Issue 3613] New: enforce cannot be called with template parameters and compile.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 12 22:00:38 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3613
Summary: enforce cannot be called with template parameters and
compile.
Product: D
Version: unspecified
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: sandford at jhu.edu
--- Comment #0 from Rob Jacques <sandford at jhu.edu> 2009-12-12 22:00:37 PST ---
The following test case:
enforce!(bool,"hi",5)(true, "hi");
results in an error:
Error: template instance enforce!(bool,"hi",5) matches more than one template
declaration, enforce(T,string file = __FILE__,int line = __LINE__) and
enforce(T,string file = __FILE__,int line = __LINE__)
using DMD 2.037.
--
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