www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2062] New: Cannot deduce template type

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2062

           Summary: Cannot deduce template type
           Product: D
           Version: 2.013
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: caron800 googlemail.com


The compiler can't figure this one out

    void foo(T)(const(T)[] s, const(T)[] t)
    {
    }

    void main()
    {
        foo("hello","world");
    }

(However it /can/ figure out similar templates with only one parameter).


-- 
May 01 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2062


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |FIXED


--- Comment #1 from Don <clugdbug yahoo.com.au> 2011-01-31 23:57:27 PST ---
Fixed between 2.014 and 2.020.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 31 2011