Tentative fix for msvc warnings.

See https://github.com/boostorg/regex/issues/61.
Adds warning test case.
This commit is contained in:
jzmaddock
2018-07-22 17:16:21 +01:00
parent 2517588955
commit 7b2ccc0095
15 changed files with 66 additions and 15 deletions

View File

@ -241,7 +241,7 @@ inline std::ptrdiff_t global_length<char>(const char* p)
template<>
inline std::ptrdiff_t global_length<wchar_t>(const wchar_t* p)
{
return (std::wcslen)(p);
return (std::ptrdiff_t)(std::wcslen)(p);
}
#endif
template <class charT>