From 732a72414ca5788d53f2f5e016c7cd53b611d66d Mon Sep 17 00:00:00 2001 From: 464027401@qq.com <464027401@qq.com> Date: 星期三, 15 九月 2021 16:47:26 +0800 Subject: [PATCH] 替换使用去掉callkit的包 --- Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/enum-generator.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/enum-generator.h b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/enum-generator.h old mode 100755 new mode 100644 index 5a289b7..3051444 --- a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/enum-generator.h +++ b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/enum-generator.h @@ -77,6 +77,14 @@ return ""; \ } +template<typename T> +inline char getEnumValueAsString (const T &) { return 0; } + +template<typename T> +struct IsDefinedEnum { + enum { value = sizeof(getEnumValueAsString(std::declval<T>())) == sizeof(const char *) }; +}; + //Explicit conversion from enum type to underlying type template<typename T> constexpr auto to_integral(T e) -> typename std::underlying_type<T>::type -- Gitblit v1.8.0