diff options
Diffstat (limited to 'src/core/function/basic/GpgFunctionObject.h')
-rw-r--r-- | src/core/function/basic/GpgFunctionObject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/function/basic/GpgFunctionObject.h b/src/core/function/basic/GpgFunctionObject.h index ec0cebac..619cad04 100644 --- a/src/core/function/basic/GpgFunctionObject.h +++ b/src/core/function/basic/GpgFunctionObject.h @@ -79,7 +79,7 @@ class SingletonFunctionObject : public ChannelObject { } } - static_assert(std::is_base_of<SingletonFunctionObject<T>, T>::value, + static_assert(std::is_base_of_v<SingletonFunctionObject<T>, T>, "T not derived from SingletonFunctionObject<T>"); auto* p_storage = @@ -123,7 +123,7 @@ class SingletonFunctionObject : public ChannelObject { */ static auto CreateInstance( int channel, const std::function<ChannelObjectPtr(void)>& factory) -> T& { - static_assert(std::is_base_of<SingletonFunctionObject<T>, T>::value, + static_assert(std::is_base_of_v<SingletonFunctionObject<T>, T>, "T not derived from SingletonFunctionObject<T>"); auto* p_storage = |