From: Wolfgang Bangerth Date: Tue, 24 Oct 2017 04:21:43 +0000 (-0600) Subject: Use C++11-style initialization of a std::map. X-Git-Tag: v9.0.0-rc1~893^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e718edaf4e096e14f0788f9f1a4fe68bd51405f1;p=dealii.git Use C++11-style initialization of a std::map. --- 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);