Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (23 sloc) 0.633 kb
#ifndef THORSANVIL_SERIALIZE_JSON_SERIAlIZE_MEMORY_H
#define THORSANVIL_SERIALIZE_JSON_SERIAlIZE_MEMORY_H
#include "JsonSerializer.h"
#include <memory>
namespace ThorsAnvil
{
namespace Serialize
{
namespace Json
{
template<typename K, typename V>
struct JsonSerializeTraits<std::pair<K,V> >
{
static JsonSerializeType const type = Map;
typedef std::pair<K, V> LocalType;
THORSANVIL_SERIALIZE_JsonAttribute(LocalType, first);
THORSANVIL_SERIALIZE_JsonAttribute(LocalType, second);
typedef boost::mpl::vector<first,second> SerializeInfo;
};
}
}
}
#endif
Jump to Line
Something went wrong with that request. Please try again.