]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bundled boost for Intel-17 3998/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 24 Feb 2017 00:40:43 +0000 (01:40 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 24 Feb 2017 00:47:41 +0000 (01:47 +0100)
bundled/boost-1.62.0/include/boost/serialization/array.hpp

index 2cd023aca92846ef95148716d357df2deb32b9ad..6904e07e6af1797a60c6c8e8aa32c7e7f58b4c51 100644 (file)
@@ -40,12 +40,12 @@ class array_wrapper :
 {
 private:
     array_wrapper & operator=(const array_wrapper & rhs);
-public:
+    // taken from commit 6b33d1c in the boostorg/serialization repo
     // note: I would like to make the copy constructor private but this breaks
-    // make_array.  So I try to make make_array a friend - but that doesn't
-    // build.  Need a C++ guru to explain this!
-    template<class S>
-    friend const boost::serialization::array_wrapper<T> make_array( T* t, S s);
+    // make_array.  So I try to make make_array a friend
+    template<class Tx, class S>
+    friend const boost::serialization::array_wrapper<Tx> make_array(Tx * t, S s);
+public:
 
     array_wrapper(const array_wrapper & rhs) :
         m_t(rhs.m_t),

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.