This commit is contained in:
@@ -207,13 +207,12 @@
|
||||
#define _Unreferenced_(x) (void)(x)
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
template <class T, size_t N>
|
||||
size_t _countof(const T (&arr)[N])
|
||||
{
|
||||
_Unreferenced_(arr);
|
||||
return std::extent<T[N]>::value;
|
||||
}
|
||||
#ifndef _countof
|
||||
#ifdef ARRAY_SIZE
|
||||
#define _countof ARRAY_SIZE
|
||||
#else
|
||||
#define _countof(a) (sizeof(a) / sizeof((a)[0]))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _Analysis_assume_
|
||||
@@ -317,11 +316,11 @@ namespace std
|
||||
const char_type* do_scan_is(mask m, const char_type* low, const char_type* high) const;
|
||||
const char_type* do_scan_not(mask m, const char_type* low, const char_type* high) const;
|
||||
|
||||
char_type do_toupper(char_type c) const { return m_ctypew.toupper(c); }
|
||||
char_type do_toupper(char_type c) const { return static_cast<char_type>(m_ctypew.toupper(c)); }
|
||||
|
||||
const char_type* do_toupper(char_type* low, const char_type* high) const;
|
||||
|
||||
char_type do_tolower(char_type c) const { return m_ctypew.tolower(c); }
|
||||
char_type do_tolower(char_type c) const { return static_cast<char_type>(m_ctypew.tolower(c)); }
|
||||
|
||||
const char_type* do_tolower(char_type* low, const char_type* high) const;
|
||||
char_type do_widen(char) const;
|
||||
|
||||
Reference in New Issue
Block a user