]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid C++11 initialization of std::ofstream.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Jul 2016 20:43:54 +0000 (15:43 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Jul 2016 20:43:54 +0000 (15:43 -0500)
tests/fe/mapping_q_manifold_01.cc

index a3336d13fc89052ba8df59df0011118517b03bac..2f3d92515f12088efd429106a7757e89bebc356f 100644 (file)
@@ -182,7 +182,7 @@ void test(const FiniteElement<dim> &fe)
               << diff.l2_norm() << std::endl;
 
       DataOut<dim> data_out;
-      std::ofstream output("output_" + Utilities::int_to_string(mapping_p) + ".vtk");
+      std::ofstream output(("output_" + Utilities::int_to_string(mapping_p) + ".vtk").c_str());
       data_out.attach_dof_handler (dof_handler);
       data_out.add_data_vector(v, "v");
       data_out.add_data_vector(diff, "e");

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.