Incorrectly overloaded str in TensorLayout

Issue #539 resolved
Anders Logg (Chalmers) created an issue

Compilation of DOLFIN master breaks on my macbook but seems to strangely work on the buildbots. Error message follows:

/Users/logg/dev/fenics-dev/2015-06-25/dolfin/dolfin/la/TensorLayout.h:81:17: error: 'dolfin::TensorLayout::str' hides overloaded virtual function [-Werror,-Woverloaded-virtual] std::string str() const; ^ /Users/logg/dev/fenics-dev/2015-06-25/dolfin/dolfin/common/Variable.h:71:25: note: hidden overloaded virtual function 'dolfin::Variable::str' declared here: different number of parameters (1 vs 0) virtual std::string str(bool verbose) const; ^

Adding the missing bool verbose argument to str() fixes the problem.

Comments (2)

  1. Log in to comment