DUNE-ACFEM (unstable)

compiler.hh
1#ifndef __DUNE_ACFEM_COMMON_COMPILER_HH__
2#define __DUNE_ACFEM_COMMON_COMPILER_HH__
3
4#if !defined(__clang__) && defined(__GNUC__)
5# define DUNE_ACFEM_IS_GCC(MIN_MAJOR, MAX_MAJOR) (__GNUC__ >= MIN_MAJOR && __GNUC__ <= MAX_MAJOR)
6#else
7# define DUNE_ACFEM_IS_GCC(one, two) false
8#endif
9
10#if __clang__
11# define DUNE_ACFEM_IS_CLANG(MIN_MAJOR, MAX_MAJOR) (__clang_major__ >= MIN_MAJOR && __clang_major__ <= MAX_MAJOR)
12#else
13# define DUNE_ACFEM_IS_CLANG(one, two) false
14#endif
15
16#if DUNE_ACFEM_IS_CLANG(0, 10)
17# define CXX17_P0522R0(...) class...
18#else
19# if DUNE_ACFEM_IS_CLANG(0, 99)
20# warning This construct was known to fail for clang <= V10
21# endif
22# define CXX17_P0522R0(...) __VA_ARGS__
23#endif
24
25#endif // __DUNE_ACFEM_COMMON_COMOILER_HH__
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Jun 19, 23:17, 2026)