Dear All,

I am getting a strange error message when using TableHandler (and
ConvergenceTable) with 7.0.0. The minimal code snippet is:

  #include<deal.II/base/table_handler.h>
  using namespace dealii;
....

  TableHandler table();
  filename = "table.tex";
  table.add_value("Value", 0.01);
  std::ofstream table_output(filename.c_str());
  table.write_tex(table_output);
  table_output.close();

Which gives the error message:

source/cdGMethod.cc: In member function 'void
cdGMethod<dim>::output_results() [with int dim = 2]':
source/cdGMethod.cc:729:3:   instantiated from 'void
cdGMethod<dim>::run() [with int dim = 2]'
source/cdGMethod.cc:743:21:   instantiated from here
source/cdGMethod.cc:712:3: error: request for member 'add_value' in
'table [with int dim = 2]', which is of non-class type
'dealii::TableHandler()'
source/cdGMethod.cc:716:3: error: request for member 'write_tex' in
'table [with int dim = 2]', which is of non-class type
'dealii::TableHandler()'

I don't understand what is going on as clearly the compiler knows about
TableHandler as it created the TableHandler object, and examining the
source code the functions add_value and write_tex do exist (and a
similar error is given for any member of the class).

I have tried using the developer rev 23862 (from late June) but I get
the same error.

Thanks,

John


_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to