]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Second try
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 10 Jun 2021 12:20:41 +0000 (14:20 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 10 Jun 2021 12:20:41 +0000 (14:20 +0200)
include/deal.II/particles/particle_accessor.h

index c2f24c8ae90f40cd64ef02b279e4101b48b430f1..073f3a69c02092799698b4f31f17e9afc1a3359b 100644 (file)
@@ -409,7 +409,7 @@ namespace Particles
 
   template <int dim, int spacedim>
   inline ParticleAccessor<dim, spacedim>::ParticleAccessor()
-    : particles_on_cell({})
+    : particles_on_cell(typename particle_container::iterator())
     , property_pool(nullptr)
     , cell()
     , particle_index_within_cell(numbers::invalid_unsigned_int)
@@ -432,7 +432,7 @@ namespace Particles
         const_cast<particle_container *>(&particles)->begin() +
         cell->active_cell_index();
     else
-      particles_on_cell = {};
+      particles_on_cell = typename particle_container::iterator();
   }
 
 

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.