Multi-user gravity beats for Sound of Science 2013 (server)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 

21 lines
380 B

#pragma once
#include "json.h"
template <typename C>
inline js::Value ptrvector_to_json(C const & container){
js::Array array;
for(auto x : container){
array.push_back(to_json(*x));
}
return array;
}
template <typename C>
inline js::Value vector_to_json(C const & container){
js::Array array;
for(auto x : container){
array.push_back(to_json(x));
}
return array;
}