File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 3
3
int main ()
4
4
{
5
5
std::string config = R"(
6
- iteration_encoding = "variable_based"
7
-
8
- [json]
9
- mode = "template"
6
+ {
7
+ "iteration_encoding": "variable_based",
8
+ "json": {
9
+ "mode": "template"
10
+ }
11
+ }
10
12
)" ;
11
13
12
14
openPMD::Series writeTemplate (
Original file line number Diff line number Diff line change @@ -72,7 +72,20 @@ namespace
72
72
{
73
73
return T{};
74
74
}
75
+ #if defined(__INTEL_COMPILER)
76
+ /*
77
+ * ICPC has trouble with if constexpr, thinking that return statements are
78
+ * missing afterwards. Deactivate the warning.
79
+ * Note that putting a statement here will not help to fix this since it will
80
+ * then complain about unreachable code.
81
+ * https://community.intel.com/t5/Intel-C-Compiler/quot-if-constexpr-quot-and-quot-missing-return-statement-quot-in/td-p/1154551
82
+ */
83
+ #pragma warning(disable : 1011)
84
+ }
85
+ #pragma warning(default : 1011)
86
+ #else
75
87
}
88
+ #endif
76
89
77
90
static constexpr char const *errorMsg = " JSON default value" ;
78
91
};
You can’t perform that action at this time.
0 commit comments