summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/cereal/Werror.patch
blob: d39eaaffdb8f2f3ba6ca0a20d8e2a6f7175d210e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- old/sandbox/CMakeLists.txt
+++ new/sandbox/CMakeLists.txt
@@ -4,9 +4,11 @@
 add_executable(sandbox_json sandbox_json.cpp)
 add_executable(sandbox_rtti sandbox_rtti.cpp)

+if(Boost_FOUND)
 add_executable(sandbox_vs sandbox_vs.cpp)
 target_link_libraries(sandbox_vs sandbox_vs_dll)
 include_directories(sandbox_shared_lib)
+endif(Boost_FOUND)

 if(Boost_FOUND)
   add_executable(performance performance.cpp)
--- old/include/cereal/types/common.hpp
+++ new/include/cereal/types/common.hpp
@@ -106,14 +106,16 @@
     t = reinterpret_cast<typename common_detail::is_enum<T>::type const &>( value );
   }

+#ifndef CEREAL_ENABLE_RAW_POINTER_SERIALIZATION
   //! Serialization for raw pointers
   /*! This exists only to throw a static_assert to let users know we don't support raw pointers. */
   template <class Archive, class T> inline
   void CEREAL_SERIALIZE_FUNCTION_NAME( Archive &, T * & )
   {
     static_assert(cereal::traits::detail::delay_static_assert<T>::value,
       "Cereal does not support serializing raw pointers - please use a smart pointer");
   }
+#endif

   //! Serialization for C style arrays
   template <class Archive, class T> inline