From 5df07a203939f382f66238e7d3cec417f9ec0b3e Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 10 Mar 2017 20:21:06 -1000 Subject: [PATCH] GCC compile fix --- src/athena/DNAYaml.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/athena/DNAYaml.cpp b/src/athena/DNAYaml.cpp index 663a906..0a393e3 100644 --- a/src/athena/DNAYaml.cpp +++ b/src/athena/DNAYaml.cpp @@ -665,6 +665,18 @@ void YAMLDocWriter::writeVal(const char* name, const INTYPE& val) curSub->m_seqChildren.emplace_back(std::move(ValToNode(val))); } +template void YAMLDocWriter::writeVal(const char* name, const atInt8& val); +template void YAMLDocWriter::writeVal(const char* name, const atUint8& val); +template void YAMLDocWriter::writeVal(const char* name, const atInt16& val); +template void YAMLDocWriter::writeVal(const char* name, const atUint16& val); +template void YAMLDocWriter::writeVal(const char* name, const atInt32& val); +template void YAMLDocWriter::writeVal(const char* name, const atUint32& val); +template void YAMLDocWriter::writeVal(const char* name, const float& val); +template void YAMLDocWriter::writeVal(const char* name, const double& val); +template void YAMLDocWriter::writeVal(const char* name, const atVec3f& val); +template void YAMLDocWriter::writeVal(const char* name, const atVec4f& val); +template void YAMLDocWriter::writeVal(const char* name, const bool& val); + template void YAMLDocWriter::writeVal(const char* name, const INTYPE& val, size_t byteCount) { @@ -1132,6 +1144,18 @@ RETURNTYPE YAMLDocReader::readVal(const char* name) return RETURNTYPE(); } +template atInt8 YAMLDocReader::readVal(const char* name); +template atUint8 YAMLDocReader::readVal(const char* name); +template atInt16 YAMLDocReader::readVal(const char* name); +template atUint16 YAMLDocReader::readVal(const char* name); +template atInt32 YAMLDocReader::readVal(const char* name); +template atUint32 YAMLDocReader::readVal(const char* name); +template float YAMLDocReader::readVal(const char* name); +template double YAMLDocReader::readVal(const char* name); +template atVec3f YAMLDocReader::readVal(const char* name); +template atVec4f YAMLDocReader::readVal(const char* name); +template bool YAMLDocReader::readVal(const char* name); + bool YAMLDocReader::readBool(const char* name) { return readVal(name);