Added missing template<>

This commit is contained in:
Anonymous
2014-01-19 02:56:18 -07:00
parent cc8938ed6d
commit b6448e0833
2 changed files with 12 additions and 1 deletions
@@ -14,7 +14,7 @@
namespace Archive
{
template<>
void AutoDeltaPackedMap<int, NetworkId>::pack(ByteStream & target, const std::string & buffer)
{
char temp[200];
@@ -46,6 +46,7 @@ namespace Archive
// ======================================================================
template<>
void AutoDeltaPackedMap<int, NetworkId>::unpack(ReadIterator & source, std::string & buffer)
{
char temp[200];
@@ -180,53 +180,63 @@ namespace Archive
// ======================================================================
// pack-to-string functions for specific types
template<>
inline void AutoDeltaPackedMap<int, float>::pack(ByteStream & target, const std::string & buffer)
{
internal_pack(target, buffer, "%i %f");
}
template<>
inline void AutoDeltaPackedMap<int, float>::unpack(ReadIterator & source, std::string & buffer)
{
internal_unpack(source, buffer, "%i %.2f:");
}
template<>
inline void AutoDeltaPackedMap<int, int>::pack(ByteStream & target, const std::string & buffer)
{
internal_pack(target, buffer, "%i %i");
}
template<>
inline void AutoDeltaPackedMap<int, int>::unpack(ReadIterator & source, std::string & buffer)
{
internal_unpack(source, buffer, "%i %i:");
}
template<>
inline void AutoDeltaPackedMap<int, unsigned long>::pack(ByteStream & target, const std::string & buffer)
{
internal_pack(target, buffer, "%i %u");
}
template<>
inline void AutoDeltaPackedMap<int, unsigned long>::unpack(ReadIterator & source, std::string & buffer)
{
internal_unpack(source, buffer, "%i %u:");
}
#ifdef WIN32
template<>
inline void AutoDeltaPackedMap<unsigned long, unsigned __int64>::pack(ByteStream & target, const std::string & buffer)
{
internal_pack(target, buffer, "%lu %I64u");
}
template<>
inline void AutoDeltaPackedMap<unsigned long, unsigned __int64>::unpack(ReadIterator & source, std::string & buffer)
{
internal_unpack(source, buffer, "%lu %I64u:");
}
#else
template<>
inline void AutoDeltaPackedMap<unsigned long, unsigned long long int>::pack(ByteStream & target, const std::string & buffer)
{
internal_pack(target, buffer, "%lu %llu");
}
template<>
inline void AutoDeltaPackedMap<unsigned long, unsigned long long int>::unpack(ReadIterator & source, std::string & buffer)
{
internal_unpack(source, buffer, "%lu %llu:");