#1302 allocators different for compilers with and without C++11 support
Metadata
Property | Value |
---|---|
Reported by | Markus Blatt (markus@dr-blatt.de) |
Reported at | May 11, 2013 19:19 |
Type | Bug Report |
Version | 2.2 |
Operating System | Unspecified / All |
Last edited by | Markus Blatt (markus@dr-blatt.de) |
Last edited at | May 11, 2013 19:21 |
Description
Both debugallocator.hh and mallocallocator.hh use C++11 components if available without supporting a fallback solution for compilers not supporting them.
The most prominent (and probably only) case is in their construct method. With C++11 compilers one can use constructors using multiple arguments. Without C++11 support only the copy constructor is available.
The current implementation will lead to DUNE code that will not run without C++11 support. Either we have to provide a fallback for older compilers or we should publish that they are no longer supported.