[Issue 7411] New: Deduce base type from vector types in templates
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Jan 31 10:30:20 PST 2012
    
    
  
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: nobody at puremagic.com
        ReportedBy: turkeyman at gmail.com
--- Comment #0 from Manu <turkeyman at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list