http://d.puremagic.com/issues/show_bug.cgi?id=7411

           Summary: Deduce base type from vector types in templates
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: turkey...@gmail.com


--- Comment #0 from Manu <turkey...@gmail.com> 2012-01-31 10:30:19 PST ---
Something like this (Not sure if I have the syntax quite right):

template BaseTypeOfVector(T : __vector(T[N]), size_t N)
{
  T is the type of the vector
  N is the number of elements
}

It's important to be able to know the type and width of vectors at compile time
to generate appropriate code.

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

Reply via email to