148
148
SER_GETHASH = (1 << 2 ),
149
149
};
150
150
151
- #define READWRITE (obj ) (::SerReadWrite(s, (obj), ser_action))
152
- #define READWRITEMANY (...) (::SerReadWriteMany(s, ser_action, __VA_ARGS__))
151
+ #define READWRITE (...) (::SerReadWriteMany(s, ser_action, __VA_ARGS__))
153
152
154
153
/* *
155
154
* Implement three methods for serializable objects. These are actually wrappers over
@@ -825,19 +824,6 @@ struct CSerActionUnserialize
825
824
constexpr bool ForRead () const { return true ; }
826
825
};
827
826
828
- template <typename Stream, typename T>
829
- inline void SerReadWrite (Stream& s, const T& obj, CSerActionSerialize ser_action)
830
- {
831
- ::Serialize (s, obj);
832
- }
833
-
834
- template <typename Stream, typename T>
835
- inline void SerReadWrite (Stream& s, T& obj, CSerActionUnserialize ser_action)
836
- {
837
- ::Unserialize (s, obj);
838
- }
839
-
840
-
841
827
842
828
843
829
@@ -897,12 +883,6 @@ void SerializeMany(Stream& s)
897
883
{
898
884
}
899
885
900
- template <typename Stream, typename Arg>
901
- void SerializeMany (Stream& s, Arg&& arg)
902
- {
903
- ::Serialize (s, std::forward<Arg>(arg));
904
- }
905
-
906
886
template <typename Stream, typename Arg, typename ... Args>
907
887
void SerializeMany (Stream& s, Arg&& arg, Args&&... args)
908
888
{
@@ -915,12 +895,6 @@ inline void UnserializeMany(Stream& s)
915
895
{
916
896
}
917
897
918
- template <typename Stream, typename Arg>
919
- inline void UnserializeMany (Stream& s, Arg& arg)
920
- {
921
- ::Unserialize (s, arg);
922
- }
923
-
924
898
template <typename Stream, typename Arg, typename ... Args>
925
899
inline void UnserializeMany (Stream& s, Arg& arg, Args&... args)
926
900
{
0 commit comments