remove warning
This commit is contained in:
@@ -162,7 +162,7 @@ inline PIBinaryStream<P> & operator<<(PIBinaryStream<P> & s, const bool v) {
|
|||||||
}
|
}
|
||||||
template<typename P>
|
template<typename P>
|
||||||
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, bool & v) {
|
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, bool & v) {
|
||||||
uchar c;
|
uchar c = 0;
|
||||||
s.binaryStreamTake(&c, sizeof(c));
|
s.binaryStreamTake(&c, sizeof(c));
|
||||||
v = c;
|
v = c;
|
||||||
return s;
|
return s;
|
||||||
@@ -354,9 +354,9 @@ inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIVector<T> & v) {
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
template<typename P,
|
template<typename P,
|
||||||
typename T,
|
typename T,
|
||||||
typename std::enable_if<std::is_trivially_copyable<T>::value, int>::type = 0,
|
typename std::enable_if<std::is_trivially_copyable<T>::value, int>::type = 0,
|
||||||
typename std::enable_if<
|
typename std::enable_if<
|
||||||
!std::is_same<decltype(std::declval<PIBinaryStream<P> &>() >> std::declval<T &>()), PIBinaryStreamTrivialRef<P>>::value,
|
!std::is_same<decltype(std::declval<PIBinaryStream<P> &>() >> std::declval<T &>()), PIBinaryStreamTrivialRef<P>>::value,
|
||||||
int>::type = 0>
|
int>::type = 0>
|
||||||
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIVector<T> & v) {
|
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIVector<T> & v) {
|
||||||
@@ -383,9 +383,9 @@ inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIVector<T> & v) {
|
|||||||
//! \~english Restore operator for PIDeque of any trivial copyable type
|
//! \~english Restore operator for PIDeque of any trivial copyable type
|
||||||
//! \~russian Оператор извлечения для PIDeque тривиальных типов
|
//! \~russian Оператор извлечения для PIDeque тривиальных типов
|
||||||
template<typename P,
|
template<typename P,
|
||||||
typename T,
|
typename T,
|
||||||
typename std::enable_if<std::is_trivially_copyable<T>::value, int>::type = 0,
|
typename std::enable_if<std::is_trivially_copyable<T>::value, int>::type = 0,
|
||||||
typename std::enable_if<
|
typename std::enable_if<
|
||||||
std::is_same<decltype(std::declval<PIBinaryStream<P> &>() >> std::declval<T &>()), PIBinaryStreamTrivialRef<P>>::value,
|
std::is_same<decltype(std::declval<PIBinaryStream<P> &>() >> std::declval<T &>()), PIBinaryStreamTrivialRef<P>>::value,
|
||||||
int>::type = 0>
|
int>::type = 0>
|
||||||
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIDeque<T> & v) {
|
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIDeque<T> & v) {
|
||||||
@@ -404,9 +404,9 @@ inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIDeque<T> & v) {
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
template<typename P,
|
template<typename P,
|
||||||
typename T,
|
typename T,
|
||||||
typename std::enable_if<std::is_trivially_copyable<T>::value, int>::type = 0,
|
typename std::enable_if<std::is_trivially_copyable<T>::value, int>::type = 0,
|
||||||
typename std::enable_if<
|
typename std::enable_if<
|
||||||
!std::is_same<decltype(std::declval<PIBinaryStream<P> &>() >> std::declval<T &>()), PIBinaryStreamTrivialRef<P>>::value,
|
!std::is_same<decltype(std::declval<PIBinaryStream<P> &>() >> std::declval<T &>()), PIBinaryStreamTrivialRef<P>>::value,
|
||||||
int>::type = 0>
|
int>::type = 0>
|
||||||
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIDeque<T> & v) {
|
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIDeque<T> & v) {
|
||||||
@@ -433,9 +433,9 @@ inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIDeque<T> & v) {
|
|||||||
//! \~english Restore operator for PIVector2D of any trivial copyable type
|
//! \~english Restore operator for PIVector2D of any trivial copyable type
|
||||||
//! \~russian Оператор извлечения для PIVector2D тривиальных типов
|
//! \~russian Оператор извлечения для PIVector2D тривиальных типов
|
||||||
template<typename P,
|
template<typename P,
|
||||||
typename T,
|
typename T,
|
||||||
typename std::enable_if<std::is_trivially_copyable<T>::value, int>::type = 0,
|
typename std::enable_if<std::is_trivially_copyable<T>::value, int>::type = 0,
|
||||||
typename std::enable_if<
|
typename std::enable_if<
|
||||||
std::is_same<decltype(std::declval<PIBinaryStream<P> &>() >> std::declval<T &>()), PIBinaryStreamTrivialRef<P>>::value,
|
std::is_same<decltype(std::declval<PIBinaryStream<P> &>() >> std::declval<T &>()), PIBinaryStreamTrivialRef<P>>::value,
|
||||||
int>::type = 0>
|
int>::type = 0>
|
||||||
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIVector2D<T> & v) {
|
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIVector2D<T> & v) {
|
||||||
@@ -456,9 +456,9 @@ inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIVector2D<T> & v)
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
template<typename P,
|
template<typename P,
|
||||||
typename T,
|
typename T,
|
||||||
typename std::enable_if<std::is_trivially_copyable<T>::value, int>::type = 0,
|
typename std::enable_if<std::is_trivially_copyable<T>::value, int>::type = 0,
|
||||||
typename std::enable_if<
|
typename std::enable_if<
|
||||||
!std::is_same<decltype(std::declval<PIBinaryStream<P> &>() >> std::declval<T &>()), PIBinaryStreamTrivialRef<P>>::value,
|
!std::is_same<decltype(std::declval<PIBinaryStream<P> &>() >> std::declval<T &>()), PIBinaryStreamTrivialRef<P>>::value,
|
||||||
int>::type = 0>
|
int>::type = 0>
|
||||||
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIVector2D<T> & v) {
|
inline PIBinaryStream<P> & operator>>(PIBinaryStream<P> & s, PIVector2D<T> & v) {
|
||||||
|
|||||||
Reference in New Issue
Block a user