summaryrefslogtreecommitdiff
path: root/zenXml/zenxml/cvrt_text.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2018-06-30 12:43:08 +0200
committerDaniel Wilhelm <shieldwed@outlook.com>2018-06-30 12:43:08 +0200
commita98326eb2954ac1e79f5eac28dbeab3ec15e047f (patch)
treebb16257a1894b488e365851273735ec13a9442ef /zenXml/zenxml/cvrt_text.h
parent10.0 (diff)
downloadFreeFileSync-a98326eb2954ac1e79f5eac28dbeab3ec15e047f.tar.gz
FreeFileSync-a98326eb2954ac1e79f5eac28dbeab3ec15e047f.tar.bz2
FreeFileSync-a98326eb2954ac1e79f5eac28dbeab3ec15e047f.zip
10.1
Diffstat (limited to 'zenXml/zenxml/cvrt_text.h')
-rwxr-xr-xzenXml/zenxml/cvrt_text.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/zenXml/zenxml/cvrt_text.h b/zenXml/zenxml/cvrt_text.h
index 17444861..32a961b2 100755
--- a/zenXml/zenxml/cvrt_text.h
+++ b/zenXml/zenxml/cvrt_text.h
@@ -112,10 +112,10 @@ enum TextType
};
template <class T>
-struct GetTextType : StaticEnum<TextType,
- IsSameType<T, bool>::value ? TEXT_TYPE_BOOL :
- IsStringLike<T>::value ? TEXT_TYPE_STRING : //string before number to correctly handle char/wchar_t -> this was an issue with Loki only!
- IsArithmetic<T>::value ? TEXT_TYPE_NUMBER : //
+struct GetTextType : std::integral_constant<TextType,
+ std::is_same_v<T, bool> ? TEXT_TYPE_BOOL :
+ IsStringLikeV<T> ? TEXT_TYPE_STRING : //string before number to correctly handle char/wchar_t -> this was an issue with Loki only!
+ IsArithmetic<T>::value ? TEXT_TYPE_NUMBER : //
TEXT_TYPE_OTHER> {};
//######################################################################################
@@ -186,7 +186,7 @@ template <class T>
struct ConvertText<T, TEXT_TYPE_OTHER>
{
//###########################################################################################################################################
- static_assert(sizeof(T) == -1, "");
+ static_assert(sizeof(T) == -1);
/*
ATTENTION: The data type T is yet unknown to the zen::Xml framework!
bgstack15