aboutsummaryrefslogtreecommitdiff
path: root/src/serialization
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-05-27 16:02:27 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:27:38 +0100
commit0ff830542688959280b0513437fb45b21baf91d8 (patch)
tree013db784eccd475d5d6124cda80667578f0d18cb /src/serialization
parentAdded note on generating H2 (diff)
downloadmonero-0ff830542688959280b0513437fb45b21baf91d8.tar.xz
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.
Diffstat (limited to 'src/serialization')
-rw-r--r--src/serialization/vector.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/serialization/vector.h b/src/serialization/vector.h
index a2a69f841..7f2bc78ba 100644
--- a/src/serialization/vector.h
+++ b/src/serialization/vector.h
@@ -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