fix clang compile

This commit is contained in:
Jacob Dufault 2017-03-07 10:01:23 -08:00
parent 729264bb34
commit b1a69c2ec3
2 changed files with 18 additions and 9 deletions

View File

@ -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();

View File

@ -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<typename T>
void Reflect(Writer& visitor, std::vector<T>& values) {