16 #ifndef MLPACK_CORE_CEREAL_IS_LOADING_HPP 17 #define MLPACK_CORE_CEREAL_IS_LOADING_HPP 19 #include <cereal/archives/binary.hpp> 20 #include <cereal/archives/portable_binary.hpp> 21 #include <cereal/archives/xml.hpp> 22 #include <cereal/archives/json.hpp> 26 template<
typename Archive>
31 constexpr
static bool value = std::is_same<Archive,
32 cereal::BinaryInputArchive>
::value ||
34 std::is_same<Archive, cereal::JSONInputArchive>::value ||
36 std::is_same<Archive, cereal::XMLInputArchive>::value;
39 template<
typename Archive>
41 const typename std::enable_if<
47 template<
typename Archive>
49 const typename std::enable_if<
57 #endif // CEREAL_IS_LOADING_HPP bool is_loading(const typename std::enable_if< is_cereal_archive< Archive >::value, Archive >::type *=0)
static constexpr bool value