Summary: void template instantiation?
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: websites

--- Comment #0 from 2012-05-24 14:57:18 PDT ---
This compiles with no errors nor warnings (dmd 2.060alpha):

struct Foo(T) {}
Foo!void f;
void main() {}

While a C++ compiler as G++ 4.7 gives:
error: ‘void’ is not a valid type for a template constant parameter

On IRC someone has said this is a feature of D. If this feature is present in D
docs then I suggest to make such note a bit more evident and to explain a bit
how this feature is useful. I think this is useful for C++ programmers.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to