summarylogtreecommitdiffstats
path: root/serialize_undef_call.patch
diff options
context:
space:
mode:
authorbartus2018-11-07 15:35:13 +0100
committerbartus2018-11-07 15:35:13 +0100
commit7d776967648abce59f7c84073d892f480289b217 (patch)
tree970470161b76517ed508a23efa3fad8b865d50e6 /serialize_undef_call.patch
parentff81c75fbecf07eb211c01a57b2a122f5eb75e0e (diff)
downloadaur-7d776967648abce59f7c84073d892f480289b217.tar.gz
fix undefined calls in slg::{Film,tilerepository}
Diffstat (limited to 'serialize_undef_call.patch')
-rw-r--r--serialize_undef_call.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/serialize_undef_call.patch b/serialize_undef_call.patch
new file mode 100644
index 00000000000..1d2564dc84b
--- /dev/null
+++ b/serialize_undef_call.patch
@@ -0,0 +1,37 @@
+diff -r ceb10f796325 src/slg/engines/tilerepository.cpp
+--- a/src/slg/engines/tilerepository.cpp Mon Dec 18 17:20:21 2017 +0100
++++ b/src/slg/engines/tilerepository.cpp Wed Nov 07 15:24:25 2018 +0100
+@@ -676,3 +676,15 @@
+
+ ar & convergedTiles;
+ }
++
++
++namespace slg {
++// Explicit instantiations for portable archives
++template void TileRepository::save(eos::portable_oarchive &ar, const u_int version) const;
++template void TileRepository::load(eos::portable_iarchive &ar, const unsigned int version);
++template void TileRepository::save(boost::archive::binary_oarchive &ar, const u_int version) const;
++template void TileRepository::load(boost::archive::binary_iarchive &ar, const unsigned int version);
++// Explicit instantiations for polymorphic archives
++template void TileRepository::save(boost::archive::polymorphic_oarchive &ar, const u_int version) const;
++template void TileRepository::load(boost::archive::polymorphic_iarchive &ar, const u_int version);
++}
+diff -r ceb10f796325 src/slg/film/filmserialize.cpp
+--- a/src/slg/film/filmserialize.cpp Mon Dec 18 17:20:21 2017 +0100
++++ b/src/slg/film/filmserialize.cpp Wed Nov 07 15:24:25 2018 +0100
+@@ -197,3 +197,14 @@
+ ar & initialized;
+ ar & enabledOverlappedScreenBufferUpdate;
+ }
++
++namespace slg {
++// Explicit instantiations for portable archives
++template void Film::save(eos::portable_oarchive &ar, const u_int version) const;
++template void Film::load(eos::portable_iarchive &ar, const u_int version);
++template void Film::save(boost::archive::binary_oarchive &ar, const u_int version) const;
++template void Film::load(boost::archive::binary_iarchive &ar, const u_int version);
++// The following 2 lines shouldn't be required but they are with GCC 5
++template void Film::save(boost::archive::polymorphic_oarchive &ar, const u_int version) const;
++template void Film::load(boost::archive::polymorphic_iarchive &ar, const u_int version);
++}