From b1a69c2ec3f96d668b4e815adf83641289444018 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Tue, 7 Mar 2017 10:01:23 -0800 Subject: [PATCH] fix clang compile --- serializer.cc | 9 --------- serializer.h | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/serializer.cc b/serializer.cc index e7f43a16..e95d79c6 100644 --- a/serializer.cc +++ b/serializer.cc @@ -1,11 +1,6 @@ #include "serializer.h" - - - - - // int void Reflect(Reader& visitor, int& value) { value = visitor.GetInt(); @@ -13,8 +8,6 @@ void Reflect(Reader& visitor, int& value) { void Reflect(Writer& visitor, int& value) { visitor.Int(value); } - - // bool void Reflect(Reader& visitor, bool& value) { value = visitor.GetBool(); @@ -22,8 +15,6 @@ void Reflect(Reader& visitor, bool& value) { void Reflect(Writer& visitor, bool& value) { visitor.Bool(value); } - - // std::string void Reflect(Reader& visitor, std::string& value) { value = visitor.GetString(); diff --git a/serializer.h b/serializer.h index 01022455..a15274b0 100644 --- a/serializer.h +++ b/serializer.h @@ -45,6 +45,24 @@ void ReflectMemberEnd(TVisitor& visitor, T& value) { } */ + + +// int +void Reflect(Reader& visitor, int& value); +void Reflect(Writer& visitor, int& value); +// bool +void Reflect(Reader& visitor, bool& value); +void Reflect(Writer& visitor, bool& value); +// std::string +void Reflect(Reader& visitor, std::string& value); +void Reflect(Writer& visitor, std::string& value); + + + + + + + // Writer: template void Reflect(Writer& visitor, std::vector& values) {