]> https://gitweb.dealii.org/ - dealii.git/commitdiff
iterator to const_iterator.
authorLuca Heltai <luca.heltai@sissa.it>
Tue, 8 Mar 2005 14:28:15 +0000 (14:28 +0000)
committerLuca Heltai <luca.heltai@sissa.it>
Tue, 8 Mar 2005 14:28:15 +0000 (14:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@10041 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/function_parser.cc

index a61c6f39248b667064f4e332d57c9eaf720f50b7..a91a2494665cfba5c4d7e1df854d6d04ae094092 100644 (file)
@@ -55,7 +55,8 @@ void FunctionParser<dim>::initialize(const std::string variables,
   for (unsigned int i=0; i<this->n_components; ++i) {
     // Add the variuous constants to the parser.
     std::map< std::string, double >::iterator
-      constant = constants.begin(),
+      constant = constants.begin();
+    std::map< std::string, double >::const_iterator
       endc  = constants.end();
     for(;constant != endc; ++constant) {
       AssertThrow( fp[i].AddConstant(constant->first, constant->second),

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.