Commit 2b7ebfa0 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'feature/std_is_invocable' into 'master'

use std::is_invocable instead of Dune::Std::is_callable

See merge request !178
parents bf6a91cb bebdca42
......@@ -4,10 +4,10 @@
#include <shared_mutex>
#include <thread>
#include <tuple>
#include <type_traits>
#include <unordered_map>
#include <dune/common/hash.hh>
#include <dune/common/std/type_traits.hh>
namespace AMDiS
{
......@@ -219,7 +219,7 @@ namespace AMDiS
template <class F, class... Args>
data_type const& get(key_type const& key, F&& f, Args&&... args) const
{
static_assert(Dune::Std::is_callable<F(key_type, Args...), data_type>::value,
static_assert(std::is_invocable_r_v<data_type, F, key_type, Args...>,
"Functor F must have the signature data_type(key_type, Args...)");
return ConcurrentCache::get_or_init(key, FWD(f), FWD(args)...);
......
Markdown is supported
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