serialization: declare do_serialize specializations before use

This lets my gcc picks those instead of the generic template
where appropriate (and then fail since std::vector<something>
does not have a serialize method.
This commit is contained in:
moneromooo-monero 2016-05-27 16:02:27 +01:00
parent 8b135e7aa3
commit 0ff8305426
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
2 changed files with 6 additions and 1 deletions

View File

@ -32,6 +32,11 @@
#include "serialization.h"
template <template <bool> class Archive, class T>
bool do_serialize(Archive<false> &ar, std::vector<T> &v);
template <template <bool> class Archive, class T>
bool do_serialize(Archive<true> &ar, std::vector<T> &v);
namespace serialization
{
namespace detail