From 46fc289a8776ba253e97d01d6948fb1031ea1973 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 2 Oct 2015 14:55:19 +0200 Subject: 7.0 --- zen/string_traits.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'zen/string_traits.h') diff --git a/zen/string_traits.h b/zen/string_traits.h index 8bc55a6a..8c4775f4 100644 --- a/zen/string_traits.h +++ b/zen/string_traits.h @@ -176,8 +176,8 @@ size_t cStringLength(const C* str) //naive implementation seems somewhat faster } -template inline -const typename GetCharType::Type* strBegin(const S& str, typename EnableIf::isStringClass>::Type* = nullptr) //SFINAE: T must be a "string" +template ::isStringClass>::Type> inline +const typename GetCharType::Type* strBegin(const S& str) //SFINAE: T must be a "string" { return str.c_str(); } @@ -190,8 +190,8 @@ inline const char* strBegin(const StringRef& ref) { return ref.data( inline const wchar_t* strBegin(const StringRef& ref) { return ref.data(); } -template inline -size_t strLength(const S& str, typename EnableIf::isStringClass>::Type* = nullptr) //SFINAE: T must be a "string" +template ::isStringClass>::Type> inline +size_t strLength(const S& str) //SFINAE: T must be a "string" { return str.length(); } -- cgit