Skip to content
Snippets Groups Projects
Commit d49d0e1a authored by Lars Bilke's avatar Lars Bilke
Browse files

Merge branch 'cherry-pick-40e4f8c7' into 'v6.3.3'

[v6.3.3] Cherry-pick !3382 "Replace std::result_of with std::invoke_result"

See merge request ogs/ogs!3391
parents 3b8cfb90 297a0fbc
No related branches found
No related tags found
No related merge requests found
...@@ -52,22 +52,20 @@ struct SecondaryVariableFunctions final ...@@ -52,22 +52,20 @@ struct SecondaryVariableFunctions final
static_assert( static_assert(
std::is_same< std::is_same<
GlobalVector const&, GlobalVector const&,
typename std::result_of<F1( typename std::invoke_result<
double const, std::vector<GlobalVector*> const&, F1, double const, std::vector<GlobalVector*> const&,
std::vector<NumLib::LocalToGlobalIndexMap const*> const& std::vector<NumLib::LocalToGlobalIndexMap const*> const&,
dof_table, std::unique_ptr<GlobalVector>&>::type>::value,
std::unique_ptr<GlobalVector>&)>::type>::value,
"The function eval_field_ does not return a const reference" "The function eval_field_ does not return a const reference"
" to a GlobalVector"); " to a GlobalVector");
static_assert( static_assert(
std::is_same< std::is_same<
GlobalVector const&, GlobalVector const&,
typename std::result_of<F2( typename std::invoke_result<
double const, std::vector<GlobalVector*> const& x, F2, double const, std::vector<GlobalVector*> const&,
std::vector<NumLib::LocalToGlobalIndexMap const*> const& std::vector<NumLib::LocalToGlobalIndexMap const*> const&,
dof_table, std::unique_ptr<GlobalVector>&>::type>::value,
std::unique_ptr<GlobalVector>&)>::type>::value,
"The function eval_residuals_ does not return a const reference" "The function eval_residuals_ does not return a const reference"
" to a GlobalVector"); " to a GlobalVector");
} }
...@@ -82,11 +80,10 @@ struct SecondaryVariableFunctions final ...@@ -82,11 +80,10 @@ struct SecondaryVariableFunctions final
static_assert( static_assert(
std::is_same< std::is_same<
GlobalVector const&, GlobalVector const&,
typename std::result_of<F1( typename std::invoke_result<
double const, std::vector<GlobalVector*> const& x, F1, double const, std::vector<GlobalVector*> const&,
std::vector<NumLib::LocalToGlobalIndexMap const*> const& std::vector<NumLib::LocalToGlobalIndexMap const*> const&,
dof_table, std::unique_ptr<GlobalVector>&>::type>::value,
std::unique_ptr<GlobalVector>&)>::type>::value,
"The function eval_field_ does not return a const reference" "The function eval_field_ does not return a const reference"
" to a GlobalVector"); " to a GlobalVector");
} }
......
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