]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use std::enable_if instead of boost::disable_if. 9895/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 15 Apr 2020 16:43:46 +0000 (10:43 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 15 Apr 2020 16:43:46 +0000 (10:43 -0600)
include/deal.II/particles/particle_handler.h

index 24404e0cd2b7b14588aaf777cc7adfb539c2c6d9..5948e78f5e8e263e42735b1c06d9dd73977fe744 100644 (file)
@@ -334,8 +334,9 @@ namespace Particles
      * @authors Luca Heltai, Bruno Blais, 2019.
      */
     template <class VectorType>
-    typename boost::disable_if<
-      std::is_convertible<VectorType *, Function<spacedim> *>>::type
+    typename std::enable_if<
+      std::is_convertible<VectorType *, Function<spacedim> *>::value ==
+      false>::type
     set_particle_positions(const VectorType &input_vector,
                            const bool        displace_particles = true);
 
@@ -795,8 +796,9 @@ namespace Particles
 
   template <int dim, int spacedim>
   template <class VectorType>
-  typename boost::disable_if<
-    std::is_convertible<VectorType *, Function<spacedim> *>>::type
+  typename std::enable_if<
+    std::is_convertible<VectorType *, Function<spacedim> *>::value ==
+    false>::type
   ParticleHandler<dim, spacedim>::set_particle_positions(
     const VectorType &input_vector,
     const bool        displace_particles)

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.