]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use C++11 instead of boost in base/symmetric_tensor_36 3978/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 15 Feb 2017 10:05:40 +0000 (11:05 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 15 Feb 2017 10:05:40 +0000 (11:05 +0100)
tests/base/symmetric_tensor_36.cc

index 93ca72f929625472a037981566f0d6ff80c46876..6311f66febe476c6c7537b5af81cd5c1e8f85f54 100644 (file)
@@ -21,8 +21,7 @@
 #include <deal.II/base/tensor.h>
 #include <deal.II/base/logstream.h>
 
-// These boost functions are bundled with deal.II
-#include <boost/type_traits.hpp>
+#include <type_traits>
 
 #include <complex>
 #include <fstream>
@@ -36,7 +35,7 @@ template<int rank, int dim,
          template<int,int,typename> class TensorType,
          typename NumberType1,
          typename NumberType2>
-typename boost::disable_if<boost::is_constructible<NumberType1,NumberType2>,void>::type
+typename std::enable_if<!std::is_constructible<NumberType1,NumberType2>::value,void>::type
 test_tensor_constructor (const std::string &, const std::string &)
 {}
 
@@ -44,7 +43,7 @@ template<int rank, int dim,
          template<int,int,typename> class TensorType,
          typename NumberType1,
          typename NumberType2>
-typename boost::enable_if<boost::is_constructible<NumberType1,NumberType2>,void>::type
+typename std::enable_if<std::is_constructible<NumberType1,NumberType2>::value,void>::type
 test_tensor_constructor (const std::string &type1, const std::string &type2)
 {
   deallog

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.