]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix boost for MSVC as in https://github.com/boostorg/graph/pull/84 7520/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 10 Dec 2018 21:21:13 +0000 (22:21 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 10 Dec 2018 22:39:22 +0000 (23:39 +0100)
bundled/boost-1.62.0/include/boost/graph/named_function_params.hpp

index a9a9add6c8eed9758f8ae728291bc6d60d65cc1b..4842dc9548380f2f409b82b069bb9811c964a160 100644 (file)
@@ -228,6 +228,7 @@ BOOST_BGL_DECLARE_NAMED_PARAMS
   };
 
   struct param_not_found {};
+  static param_not_found g_param_not_found;
 
   template <typename Tag, typename Args>
   struct get_param_type: 
@@ -237,7 +238,7 @@ BOOST_BGL_DECLARE_NAMED_PARAMS
   inline
   const typename lookup_named_param_def<Tag, Args, param_not_found>::type&
   get_param(const Args& p, Tag) {
-    return lookup_named_param_def<Tag, Args, param_not_found>::get(p, param_not_found());
+    return lookup_named_param_def<Tag, Args, param_not_found>::get(p, g_param_not_found);
   }
 
   template <class P, class Default> 

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.