mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 20:06:32 +02:00
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:
parent
8b135e7aa3
commit
0ff8305426
@ -32,6 +32,11 @@
|
|||||||
|
|
||||||
#include "serialization.h"
|
#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 serialization
|
||||||
{
|
{
|
||||||
namespace detail
|
namespace detail
|
||||||
|
Loading…
Reference in New Issue
Block a user