Add CInputStream::Get<bool>

Former-commit-id: 8b12f9a986
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-15 19:09:59 +03:00
parent ff2b38dc53
commit de3ac9c9d5
1 changed files with 4 additions and 1 deletions

View File

@ -56,7 +56,10 @@ template <typename T>
inline T cinput_stream_helper(const TType<T>& type, CInputStream& in) {
return T(in);
}
template <>
inline bool cinput_stream_helper(const TType< bool >& type, CInputStream& in) {
return in.ReadBool();
}
template <>
inline int cinput_stream_helper(const TType< int >& type, CInputStream& in) {
return in.ReadLong();