148148 SER_GETHASH = (1 << 2 ),
149149};
150150
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__))
153152
154153/* *
155154 * Implement three methods for serializable objects. These are actually wrappers over
@@ -825,19 +824,6 @@ struct CSerActionUnserialize
825824 constexpr bool ForRead () const { return true ; }
826825};
827826
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-
841827
842828
843829
@@ -897,12 +883,6 @@ void SerializeMany(Stream& s)
897883{
898884}
899885
900- template <typename Stream, typename Arg>
901- void SerializeMany (Stream& s, Arg&& arg)
902- {
903- ::Serialize (s, std::forward<Arg>(arg));
904- }
905-
906886template <typename Stream, typename Arg, typename ... Args>
907887void SerializeMany (Stream& s, Arg&& arg, Args&&... args)
908888{
@@ -915,12 +895,6 @@ inline void UnserializeMany(Stream& s)
915895{
916896}
917897
918- template <typename Stream, typename Arg>
919- inline void UnserializeMany (Stream& s, Arg& arg)
920- {
921- ::Unserialize (s, arg);
922- }
923-
924898template <typename Stream, typename Arg, typename ... Args>
925899inline void UnserializeMany (Stream& s, Arg& arg, Args&... args)
926900{
0 commit comments