Skip to content
Snippets Groups Projects
Commit 9a52002c authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Added check for include <regex>

parent 7bd25c03
No related branches found
No related tags found
No related merge requests found
...@@ -278,6 +278,10 @@ BEGINFILE{ ...@@ -278,6 +278,10 @@ BEGINFILE{
# DOC: E.g., use `#include <cstdlib>` instead of `#include <stdlib.h>`. Notice that # DOC: E.g., use `#include <cstdlib>` instead of `#include <stdlib.h>`. Notice that
# DOC: using the modern header all the functions are declared inside the `std` namespace. # DOC: using the modern header all the functions are declared inside the `std` namespace.
if(h in deprecated_headers) error("deprecated_header","including deprecated header " h); if(h in deprecated_headers) error("deprecated_header","including deprecated header " h);
# DOC: :unsupported_header_regex:
# DOC: Header `<regex>`, although part of the C++11 standard, is not supported by gcc 4.8.
# DOC: In order to allow compatibility with old compilers, this header should not be used.
if(h == "regex") error("unsupported_header_regex","including unsupported header " h);
# DOC: :external_header: (style) # DOC: :external_header: (style)
# DOC: Header files should possibly not include other header files from external libraries. # DOC: Header files should possibly not include other header files from external libraries.
# DOC: Indeed, once PLUMED is installed, if paths are not set correctly the include files of the other libraries # DOC: Indeed, once PLUMED is installed, if paths are not set correctly the include files of the other libraries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment