]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove bind2nd in include
authorJonathan Robey <class4kayaker@gmail.com>
Thu, 28 Jul 2016 19:22:16 +0000 (12:22 -0700)
committerJonathan Robey <class4kayaker@gmail.com>
Thu, 28 Jul 2016 21:36:21 +0000 (14:36 -0700)
include/deal.II/grid/filtered_iterator.h
include/deal.II/lac/chunk_sparse_matrix.templates.h
include/deal.II/numerics/time_dependent.h

index 183e85cd0a88466d3582ed0bc087f53e7f95707c..f02521fe8b9cff9420f25eff0774ef63d90035d9 100644 (file)
@@ -376,11 +376,11 @@ namespace IteratorFilters
  * @endcode
  * then
  * @code
- *   std::bind2nd (std::ptr_fun(&level_equal_to<active_cell_iterator>), 3)
+ *   std_cxx11::bind (std::ptr_fun(&level_equal_to<active_cell_iterator>), std_cxx11::_1, 3)
  * @endcode
  * is another valid predicate (here: a function that returns true if either
  * the iterator is past the end or the level is equal to the second argument;
- * this second argument is bound to a fixed value using the @p std::bind2nd
+ * this second argument is bound to a fixed value using the @p std::bind
  * function).
  *
  * Finally, classes can be predicates. The following class is one:
index b0f62143f1eb670819a75af41d24fa59c7f13d18..76ed57c6282dfa054e86af52911ae13e9c347cbe 100644 (file)
@@ -519,7 +519,7 @@ ChunkSparseMatrix<number>::n_actually_nonzero_elements () const
   return std::count_if(&val[0],
                        &val[cols->sparsity_pattern.n_nonzero_elements () *
                             chunk_size * chunk_size],
-                       std::bind2nd(std::not_equal_to<double>(), 0));
+                       std_cxx11::bind(std::not_equal_to<double>(), std_cxx11::_1, 0));
 }
 
 
index 79dae776291a63f730c8cb2a3ac2c24053304366..504bdee3e0886e1e57dfa240ff6ef3de5b8d44f6 100644 (file)
@@ -283,9 +283,10 @@ template <int dim, int spacedim> class Triangulation;
  *   ...
  *
  *   do_loop (mem_fun (&TimeStepBase_Tria<dim>::init_for_refinement),
- *            bind2nd (mem_fun1 (&TimeStepBase_Wave<dim>::refine_grid),
- *                     TimeStepBase_Tria<dim>::RefinementData (top_threshold,
- *                                                             bottom_threshold)),
+ *            std_cxx11::bind (&TimeStepBase_Wave<dim>::refine_grid,
+ *                             std_cxx11::_1
+ *                             TimeStepBase_Tria<dim>::RefinementData (top_threshold,
+ *                                                                     bottom_threshold)),
  *            TimeDependent::TimeSteppingData (0,1),
  *            TimeDependent::forward);
  * @endcode
@@ -524,7 +525,7 @@ public:
    * the TimeStepBase class.
    *
    * Instead of using the above form, you can equally well use
-   * <tt>bind2nd(mem_fun1(&X::unary_function), arg)</tt> which lets the @p
+   * <tt>std_cxx11::bind(&X::unary_function, std_cxx11::_1, arg)</tt> which lets the @p
    * do_loop function call the given function with the specified parameter.
    * Note that you need to bind the second parameter since the first one
    * implicitly contains the object which the function is to be called for.

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.