Simplified the "cereal" includes to not clash with Perl includes

This commit is contained in:
bubnikv 2019-07-04 22:09:14 +02:00
parent 3d420db531
commit 9fd0c55eb8
9 changed files with 8 additions and 25 deletions

View File

@ -161,9 +161,6 @@ inline bool empty(const BoundingBox3Base<VT> &bb)
} // namespace Slic3r } // namespace Slic3r
#include <cereal/types/polymorphic.hpp>
#include <cereal/archives/binary.hpp>
// Serialization through the Cereal library // Serialization through the Cereal library
namespace cereal { namespace cereal {
template<class Archive> void serialize(Archive& archive, Slic3r::BoundingBox &bb) { archive(bb.min, bb.max, bb.defined); } template<class Archive> void serialize(Archive& archive, Slic3r::BoundingBox &bb) { archive(bb.min, bb.max, bb.defined); }

View File

@ -822,6 +822,7 @@ t_config_option_keys StaticConfig::keys() const
} }
#include <cereal/types/polymorphic.hpp>
CEREAL_REGISTER_TYPE(Slic3r::ConfigOption) CEREAL_REGISTER_TYPE(Slic3r::ConfigOption)
CEREAL_REGISTER_TYPE(Slic3r::ConfigOptionSingle<double>) CEREAL_REGISTER_TYPE(Slic3r::ConfigOptionSingle<double>)
CEREAL_REGISTER_TYPE(Slic3r::ConfigOptionSingle<int>) CEREAL_REGISTER_TYPE(Slic3r::ConfigOptionSingle<int>)

View File

@ -18,11 +18,8 @@
#include <boost/format.hpp> #include <boost/format.hpp>
#include <boost/property_tree/ptree.hpp> #include <boost/property_tree/ptree.hpp>
#include <cereal/types/polymorphic.hpp> #include <cereal/access.hpp>
#include <cereal/types/map.hpp> #include <cereal/types/base_class.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/archives/binary.hpp>
namespace Slic3r { namespace Slic3r {

View File

@ -8,8 +8,7 @@
#include "Polyline.hpp" #include "Polyline.hpp"
// Serialization through the Cereal library // Serialization through the Cereal library
#include <cereal/types/polymorphic.hpp> #include <cereal/access.hpp>
#include <cereal/archives/binary.hpp>
#include "boost/polygon/voronoi.hpp" #include "boost/polygon/voronoi.hpp"
using boost::polygon::voronoi_builder; using boost::polygon::voronoi_builder;

View File

@ -1,11 +1,7 @@
#ifndef slic3r_ObjectID_hpp_ #ifndef slic3r_ObjectID_hpp_
#define slic3r_ObjectID_hpp_ #define slic3r_ObjectID_hpp_
#include <cereal/types/polymorphic.hpp> #include <cereal/access.hpp>
#include <cereal/types/map.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/archives/binary.hpp>
namespace Slic3r { namespace Slic3r {

View File

@ -291,9 +291,6 @@ namespace boost { namespace polygon {
} } } }
// end Boost // end Boost
#include <cereal/types/polymorphic.hpp>
#include <cereal/archives/binary.hpp>
// Serialization through the Cereal library // Serialization through the Cereal library
namespace cereal { namespace cereal {
// template<class Archive> void serialize(Archive& archive, Slic3r::Vec2crd &v) { archive(v.x(), v.y()); } // template<class Archive> void serialize(Archive& archive, Slic3r::Vec2crd &v) { archive(v.x(), v.y()); }

View File

@ -3198,5 +3198,6 @@ void DynamicPrintAndCLIConfig::handle_legacy(t_config_option_key &opt_key, std::
} }
#include <cereal/types/polymorphic.hpp>
CEREAL_REGISTER_TYPE(Slic3r::DynamicPrintConfig) CEREAL_REGISTER_TYPE(Slic3r::DynamicPrintConfig)
CEREAL_REGISTER_POLYMORPHIC_RELATION(Slic3r::DynamicConfig, Slic3r::DynamicPrintConfig) CEREAL_REGISTER_POLYMORPHIC_RELATION(Slic3r::DynamicConfig, Slic3r::DynamicPrintConfig)

View File

@ -102,12 +102,8 @@
#include <Eigen/Dense> #include <Eigen/Dense>
#include <Eigen/Geometry> #include <Eigen/Geometry>
#include <cereal/types/polymorphic.hpp> #include <cereal/access.hpp>
#include <cereal/types/map.hpp> #include <cereal/types/base_class.hpp>
#include <cereal/types/memory.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/archives/binary.hpp>
#include "BoundingBox.hpp" #include "BoundingBox.hpp"
#include "ClipperUtils.hpp" #include "ClipperUtils.hpp"

View File

@ -87,7 +87,6 @@ extern "C" {
#endif /* _MSC_VER */ #endif /* _MSC_VER */
#undef Zero #undef Zero
#undef Packet #undef Packet
#undef ST
#undef _ #undef _
} }
#endif #endif