Add member template version of SerializeTrait<T>::Create that also accepts

an optional argument for us by T's Create method.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2008-04-03 16:44:37 +00:00
parent db9b1c3329
commit a150ffeada

View File

@ -38,6 +38,11 @@ struct SerializeTrait {
static inline void Emit(Serializer& S, const T& X) { X.Emit(S); }
static inline void Read(Deserializer& D, T& X) { X.Read(D); }
static inline T* Create(Deserializer& D) { return T::Create(D); }
template <typename Arg1>
static inline T* Create(Deserializer& D, Arg1& arg1) {
return T::Create(D, arg1);
}
};
#define SERIALIZE_INT_TRAIT(TYPE)\