Cleared "signed/unsigned" warning introduced by 1997c21b37 under GCC. The ultimate fix is to guard the std::streamsize specialization to ensure Microsoft compilers don't see it

pull/35/head
Jeffrey Walton 2015-07-26 13:56:45 -04:00
parent fedd08f15c
commit 30b706316b
1 changed files with 2 additions and 1 deletions

3
misc.h
View File

@ -370,7 +370,8 @@ inline bool SafeConvert(T1 from, T2 &to)
return true;
}
#ifndef CRYPTOPP_WIN32_AVAILABLE
// MSVC see this as a duplicate specialization
#ifndef _MSC_VER
// files.cpp, line 235
template<>
inline bool SafeConvert<size_t,std::streamsize>(size_t from, std::streamsize &to)