From e718edaf4e096e14f0788f9f1a4fe68bd51405f1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 23 Oct 2017 22:21:43 -0600 Subject: [PATCH] Use C++11-style initialization of a std::map. --- examples/step-16/step-16.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/step-16/step-16.cc b/examples/step-16/step-16.cc index b7afd1728e..d3271fb1ce 100644 --- a/examples/step-16/step-16.cc +++ b/examples/step-16/step-16.cc @@ -281,11 +281,10 @@ namespace Step16 constraints.clear (); DoFTools::make_hanging_node_constraints (dof_handler, constraints); - std::set dirichlet_boundary_ids; - typename FunctionMap::type dirichlet_boundary_functions; - Functions::ZeroFunction homogeneous_dirichlet_bc; - dirichlet_boundary_ids.insert(0); - dirichlet_boundary_functions[0] = &homogeneous_dirichlet_bc; + std::set dirichlet_boundary_ids; + Functions::ZeroFunction homogeneous_dirichlet_bc; + const typename FunctionMap::type dirichlet_boundary_functions + = { { types::boundary_id(0), &homogeneous_dirichlet_bc } }; VectorTools::interpolate_boundary_values (static_cast&>(dof_handler), dirichlet_boundary_functions, constraints); -- 2.39.5