diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-05-27 16:02:27 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-28 21:27:38 +0100 |
commit | 0ff830542688959280b0513437fb45b21baf91d8 (patch) | |
tree | 013db784eccd475d5d6124cda80667578f0d18cb /src/serialization/vector.h | |
parent | Added note on generating H2 (diff) | |
download | monero-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/vector.h')
-rw-r--r-- | src/serialization/vector.h | 5 |
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 |