ADT
Last change
on this file since 3a513d89 was 6e50a6b, checked in by Michael Brooks <mlbrooks@…>, 4 years ago |
Implementing language-provided syntax for (array) dimensions.
Former z(i) and Z(N) macros are eliminated.
|
-
Property mode
set to
100644
|
File size:
292 bytes
|
Rev | Line | |
---|
[6e50a6b] | 1 | forall( [N] )
|
---|
| 2 | struct SN {};
|
---|
| 3 |
|
---|
| 4 | forall( T )
|
---|
| 5 | struct ST {};
|
---|
| 6 |
|
---|
| 7 | int main() {
|
---|
| 8 |
|
---|
| 9 | SN(42) good1;
|
---|
| 10 | ST(float) good2;
|
---|
| 11 |
|
---|
| 12 | SN(float) bad1; // first expected error: Type argument given for value parameter
|
---|
| 13 | ST(42) bad2; // second expected error: Expression argument given for type parameter
|
---|
| 14 |
|
---|
| 15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.