Fix convert.h too
This commit is contained in:
parent
e5cededa6d
commit
f9fbdd3085
@ -163,7 +163,7 @@ struct convert<bool> {
|
|||||||
|
|
||||||
// std::map
|
// std::map
|
||||||
template <typename K, typename V>
|
template <typename K, typename V>
|
||||||
struct convert<std::map<K, V>> {
|
struct convert<std::map<K, V> > {
|
||||||
static Node encode(const std::map<K, V>& rhs) {
|
static Node encode(const std::map<K, V>& rhs) {
|
||||||
Node node(NodeType::Map);
|
Node node(NodeType::Map);
|
||||||
for (typename std::map<K, V>::const_iterator it = rhs.begin();
|
for (typename std::map<K, V>::const_iterator it = rhs.begin();
|
||||||
@ -190,7 +190,7 @@ struct convert<std::map<K, V>> {
|
|||||||
|
|
||||||
// std::vector
|
// std::vector
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct convert<std::vector<T>> {
|
struct convert<std::vector<T> > {
|
||||||
static Node encode(const std::vector<T>& rhs) {
|
static Node encode(const std::vector<T>& rhs) {
|
||||||
Node node(NodeType::Sequence);
|
Node node(NodeType::Sequence);
|
||||||
for (typename std::vector<T>::const_iterator it = rhs.begin();
|
for (typename std::vector<T>::const_iterator it = rhs.begin();
|
||||||
@ -217,7 +217,7 @@ struct convert<std::vector<T>> {
|
|||||||
|
|
||||||
// std::list
|
// std::list
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct convert<std::list<T>> {
|
struct convert<std::list<T> > {
|
||||||
static Node encode(const std::list<T>& rhs) {
|
static Node encode(const std::list<T>& rhs) {
|
||||||
Node node(NodeType::Sequence);
|
Node node(NodeType::Sequence);
|
||||||
for (typename std::list<T>::const_iterator it = rhs.begin();
|
for (typename std::list<T>::const_iterator it = rhs.begin();
|
||||||
@ -244,7 +244,7 @@ struct convert<std::list<T>> {
|
|||||||
|
|
||||||
// std::array
|
// std::array
|
||||||
template <typename T, std::size_t N>
|
template <typename T, std::size_t N>
|
||||||
struct convert<std::array<T, N>> {
|
struct convert<std::array<T, N> > {
|
||||||
static Node encode(const std::array<T, N>& rhs) {
|
static Node encode(const std::array<T, N>& rhs) {
|
||||||
Node node(NodeType::Sequence);
|
Node node(NodeType::Sequence);
|
||||||
for (const auto& element : rhs) {
|
for (const auto& element : rhs) {
|
||||||
@ -277,7 +277,7 @@ struct convert<std::array<T, N>> {
|
|||||||
|
|
||||||
// std::pair
|
// std::pair
|
||||||
template <typename T, typename U>
|
template <typename T, typename U>
|
||||||
struct convert<std::pair<T, U>> {
|
struct convert<std::pair<T, U> > {
|
||||||
static Node encode(const std::pair<T, U>& rhs) {
|
static Node encode(const std::pair<T, U>& rhs) {
|
||||||
Node node(NodeType::Sequence);
|
Node node(NodeType::Sequence);
|
||||||
node.push_back(rhs.first);
|
node.push_back(rhs.first);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user