]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Namespace qualify a function call. 6366/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Apr 2018 19:38:10 +0000 (13:38 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Apr 2018 19:38:10 +0000 (13:38 -0600)
GCC 4.8.4 marks the call as ambiguous between std::to_string and
Patterns::Tools::to_string. Make the compiler happy by being
explicit, whether or not that is actually necessary.

tests/base/mpi_some_to_some_02.cc

index f42e9057604996f39e00f6b82a1df2283425c226..dcf8e07802a8d66e71ab13d541a3ad2527d6b8e4 100644 (file)
@@ -85,7 +85,7 @@ void test(const unsigned int max_particles,
 
       deallog << "Proc " << my_proc << "/" << n_procs
               << ": sharing with  "
-              << to_string(shared_procs_set) << std::endl;
+              << Patterns::Tools::to_string(shared_procs_set) << std::endl;
       for (unsigned int i=0; i<n_local_particles*shared_fraction; ++i)
         shared_particles[shared_procs[random_index(shared_procs.size())]]
         .push_back(*(particles.begin()+i));

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.