]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a type explicit. 5273/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 20 Oct 2017 19:00:09 +0000 (13:00 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 20 Oct 2017 19:00:09 +0000 (13:00 -0600)
include/deal.II/lac/la_parallel_vector.h

index 08721841e101cfc1bed304e2650ce7963d2610bd..90b36c8ca3e95480881e5fb286c5530a2f3e6ce9 100644 (file)
@@ -1087,7 +1087,7 @@ namespace LinearAlgebra
        * we need to use a custom deleter for this object that does not call
        * <code>delete[]</code>, but instead calls @p free().
        */
-      std::unique_ptr<Number[], void (*)(void *)> values;
+      std::unique_ptr<Number[], decltype(&free)> values;
 
       /**
        * For parallel loops with TBB, this member variable stores the affinity

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.