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: nob...@puremagic.com
        ReportedBy: sandf...@jhu.edu


--- Comment #0 from Rob Jacques <sandf...@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: -------

Reply via email to