From 054e6e28cca2517dda2319ef683314b3318c39a6 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sun, 3 Dec 2023 12:25:21 -0800 Subject: feat: standarized and speed up app env loading process --- src/core/function/basic/GpgFunctionObject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/function/basic/GpgFunctionObject.h') 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, T>::value, + static_assert(std::is_base_of_v, T>, "T not derived from SingletonFunctionObject"); auto* p_storage = @@ -123,7 +123,7 @@ class SingletonFunctionObject : public ChannelObject { */ static auto CreateInstance( int channel, const std::function& factory) -> T& { - static_assert(std::is_base_of, T>::value, + static_assert(std::is_base_of_v, T>, "T not derived from SingletonFunctionObject"); auto* p_storage = -- cgit v1.2.3