]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add the 'template' keyword when access the template member function of a template.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 12 Oct 2007 12:25:46 +0000 (12:25 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 12 Oct 2007 12:25:46 +0000 (12:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@15302 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/data_out_base.cc

index 08dd3d0c6a2c4b88c43fb19c576bd5b14b770420..8503ea35de2dba08d635cd1e49b4ebce395d651f 100644 (file)
@@ -3854,21 +3854,21 @@ DataOutBase::write_vtk (const std::vector<Patch<dim,spacedim> > &patches,
   for (unsigned int n_th_vector=0; n_th_vector<vector_data_ranges.size(); ++n_th_vector)
     {
       
-      AssertThrow (vector_data_ranges[n_th_vector].get<1>() >
-                  vector_data_ranges[n_th_vector].get<0>(),
-                  ExcLowerRange (vector_data_ranges[n_th_vector].get<1>(),
-                                 vector_data_ranges[n_th_vector].get<0>()));
-      AssertThrow (vector_data_ranges[n_th_vector].get<1>() < n_data_sets,
-                  ExcIndexRange (vector_data_ranges[n_th_vector].get<1>(),
+      AssertThrow (vector_data_ranges[n_th_vector].template get<1>() >
+                  vector_data_ranges[n_th_vector].template get<0>(),
+                  ExcLowerRange (vector_data_ranges[n_th_vector].template get<1>(),
+                                 vector_data_ranges[n_th_vector].template get<0>()));
+      AssertThrow (vector_data_ranges[n_th_vector].template get<1>() < n_data_sets,
+                  ExcIndexRange (vector_data_ranges[n_th_vector].template get<1>(),
                                  0, n_data_sets));
-      AssertThrow (vector_data_ranges[n_th_vector].get<1>() + 1
-                  - vector_data_ranges[n_th_vector].get<0>() <= 3,
+      AssertThrow (vector_data_ranges[n_th_vector].template get<1>() + 1
+                  - vector_data_ranges[n_th_vector].template get<0>() <= 3,
                   ExcMessage ("Can't declare a vector with more than 3 components "
                               "in VTK"));
 
                                       // mark these components as already written:
-      for (unsigned int i=vector_data_ranges[n_th_vector].get<0>();
-          i<=vector_data_ranges[n_th_vector].get<1>();
+      for (unsigned int i=vector_data_ranges[n_th_vector].template get<0>();
+          i<=vector_data_ranges[n_th_vector].template get<1>();
           ++i)
        data_set_written[i] = true;
       
@@ -3879,15 +3879,15 @@ DataOutBase::write_vtk (const std::vector<Patch<dim,spacedim> > &patches,
                                       // name has been specified
       out << "VECTORS ";
 
-      if (vector_data_ranges[n_th_vector].get<2>() != "")
-       out << vector_data_ranges[n_th_vector].get<2>();
+      if (vector_data_ranges[n_th_vector].template get<2>() != "")
+       out << vector_data_ranges[n_th_vector].template get<2>();
       else
        {
-         for (unsigned int i=vector_data_ranges[n_th_vector].get<0>();
-              i<vector_data_ranges[n_th_vector].get<1>();
+         for (unsigned int i=vector_data_ranges[n_th_vector].template get<0>();
+              i<vector_data_ranges[n_th_vector].template get<1>();
               ++i)
            out << data_names[i] << "__";
-         out << data_names[vector_data_ranges[n_th_vector].get<1>()];
+         out << data_names[vector_data_ranges[n_th_vector].template get<1>()];
        }
       
       out << " double"
@@ -3898,23 +3898,23 @@ DataOutBase::write_vtk (const std::vector<Patch<dim,spacedim> > &patches,
                                       // components
       for (unsigned int n=0; n<n_nodes; ++n)
        {
-         switch (vector_data_ranges[n_th_vector].get<1>() -
-                 vector_data_ranges[n_th_vector].get<0>())
+         switch (vector_data_ranges[n_th_vector].template get<1>() -
+                 vector_data_ranges[n_th_vector].template get<0>())
            {
              case 0:
-                   out << data_vectors(vector_data_ranges[n_th_vector].get<0>(), n) << " 0 0"
+                   out << data_vectors(vector_data_ranges[n_th_vector].template get<0>(), n) << " 0 0"
                        << '\n';
                    break;
                    
              case 1:
-                   out << data_vectors(vector_data_ranges[n_th_vector].get<0>(),   n) << ' '
-                       << data_vectors(vector_data_ranges[n_th_vector].get<0>()+1, n) << " 0"
+                   out << data_vectors(vector_data_ranges[n_th_vector].template get<0>(),   n) << ' '
+                       << data_vectors(vector_data_ranges[n_th_vector].template get<0>()+1, n) << " 0"
                        << '\n';
                    break;
              case 2:
-                   out << data_vectors(vector_data_ranges[n_th_vector].get<0>(),   n) << ' '
-                       << data_vectors(vector_data_ranges[n_th_vector].get<0>()+1, n) << ' '
-                       << data_vectors(vector_data_ranges[n_th_vector].get<0>()+2, n)
+                   out << data_vectors(vector_data_ranges[n_th_vector].template get<0>(),   n) << ' '
+                       << data_vectors(vector_data_ranges[n_th_vector].template get<0>()+1, n) << ' '
+                       << data_vectors(vector_data_ranges[n_th_vector].template get<0>()+2, n)
                        << '\n';
                    break;
 
@@ -3989,9 +3989,9 @@ write_deal_II_intermediate (const std::vector<Patch<dim,spacedim> > &patches,
 
   out << vector_data_ranges.size() << '\n';
   for (unsigned int i=0; i<vector_data_ranges.size(); ++i)
-    out << vector_data_ranges[i].get<0>() << ' '
-       << vector_data_ranges[i].get<1>() << '\n'
-       << vector_data_ranges[i].get<2>() << '\n';
+    out << vector_data_ranges[i].template get<0>() << ' '
+       << vector_data_ranges[i].template get<1>() << '\n'
+       << vector_data_ranges[i].template get<2>() << '\n';
   
   out << '\n';
                                   // make sure everything now gets to
@@ -4563,11 +4563,11 @@ DataOutReader<dim,spacedim>::read (std::istream &in)
   vector_data_ranges.resize (n_vector_data_ranges);
   for (unsigned int i=0; i<n_vector_data_ranges; ++i)
     {
-      in >> vector_data_ranges[i].get<0>()
-        >> vector_data_ranges[i].get<1>();
+      in >> vector_data_ranges[i].template get<0>()
+        >> vector_data_ranges[i].template get<1>();
       std::string name;
       getline(in, name);
-      vector_data_ranges[i].get<2>() = name;
+      vector_data_ranges[i].template get<2>() = name;
     }
   
   Assert (in, ExcIO());  

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.