Commit 9d1ad42e authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#0 Improve very slightly the error message when an input parameter wasn't...

#0 Improve very slightly the error message when an input parameter wasn't found in the input data file. It is not pretty, but currently static_assert is very limited and accept only string litterals as second argument, so I can't put there the name of the class directly.
parent 3508688e
......@@ -92,7 +92,8 @@ namespace MoReFEM
const InputDataT* parameter_ptr = nullptr;
constexpr bool found = tuple_iteration::template Find<InputDataT>();
static_assert(found, "InputData not defined in the tuple!");
static_assert(found, "InputData not defined in the tuple! To find out which in the admittedly poor "
"error message, seek the class name before 'ReadHelper' in the error message below.");
tuple_iteration::template ExtractValue<InputDataT>(tuple_, parameter_ptr);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment