#1214 Avoid identifier "restrict"
Metadata
Property | Value |
---|---|
Reported by | Christoph Grüninger (gruenich@iws.uni-stuttgart.de) |
Reported at | Dec 4, 2012 07:57 |
Type | Discussion |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Markus Blatt (markus@dr-blatt.de) |
Last edited at | Dec 5, 2012 09:40 |
Closed by | Markus Blatt (markus@dr-blatt.de) |
Closed at | Dec 5, 2012 09:40 |
Closed in version | Unknown |
Resolution | Implemented |
Comment | In rev. 1738. |
Appended Vector to the names and skipped deprecation. |
Description
In the C99 standard "restrict" is defined as a keyword. At least the Cray C++ compiler does not accept functions named restrict, even if it is not a C++ keyword.
I found methods called restrict in these files: dune-istl/dune/istl/paamg/amg.hh dune-istl/dune/istl/paamg/transfer.hh dune-istl/dune/istl/paamg/test/transfertest.cc
Can we rename (copy, rename, and deprecate) these? What would be a good name?