17 #ifndef MLPACK_CORE_CEREAL_IS_SAVING_HPP 18 #define MLPACK_CORE_CEREAL_IS_SAVING_HPP 20 #include <cereal/archives/binary.hpp> 21 #include <cereal/archives/portable_binary.hpp> 22 #include <cereal/archives/xml.hpp> 23 #include <cereal/archives/json.hpp> 27 template<
typename Archive>
32 constexpr
static bool value = std::is_same<Archive,
33 cereal::BinaryOutputArchive>
::value ||
35 std::is_same<Archive, cereal::JSONOutputArchive>::value ||
37 std::is_same<Archive, cereal::XMLOutputArchive>::value;
40 template<
typename Archive>
42 const typename std::enable_if<
48 template<
typename Archive>
50 const typename std::enable_if<
58 #endif // CEREAL_IS_SAVING_HPP bool is_saving(const typename std::enable_if< is_cereal_archive_saving< Archive >::value, Archive >::type *=0)
static constexpr bool value