Sneaky C++11 syntax broke fenicstools
Issue #227
invalid
Just wanted to report that my interpolation code in fenicstools now is broken with the instant compile log extract:
In file included from ../../../home/mikael/Fenics/bitbucket/dolfin/local.master/include/dolfin/la/dolfin_la.h:68:0,
from ../../../home/mikael/Fenics/bitbucket/dolfin/local.master/include/dolfin.h:21,
from /tmp/tmpGuIuVr2014-2-3-10-57_instant_5fd20f7ca375da69edb4a2257f4f3c20074b380c/dolfin_compile_code_a66d49d2f0182e938c8c70980a922686/dolfin_compile_code_a66d49d2f0182e938c8c70980a922686PYTHON_wrap.cxx:3190:
../../../home/mikael/Fenics/bitbucket/dolfin/local.master/include/dolfin/la/LinearSolver.h:104:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type
std::unique_ptr<GenericLinearSolver> solver;
^
../../../home/mikael/Fenics/bitbucket/dolfin/local.master/include/dolfin/la/LinearSolver.h: In member function ‘virtual void dolfin::LinearSolver::update_parameters(const dolfin::Parameters&)’:
../../../home/mikael/Fenics/bitbucket/dolfin/local.master/include/dolfin/la/LinearSolver.h:87:7: error: ‘solver’ was not declared in this scope
solver->update_parameters(parameters);
^
I report it here since the error originates from apparently experimental code in dolfin. Is there an obvious easy fix or should I get back with more details?
Comments (3)
-
-
reporter SWIG Version 2.0.10
Compiled with g++ [x86_64-unknown-linux-gnu]
Configured options: +pcre
-
- changed status to invalid
Let's keep C++11 issues off the bug tracker for now - otherwise we'll swamp it. Take a look at
https://bitbucket.org/fenics-project/dolfin/commits/d0a93899236e6e5aff6a9dae6cd27c32ca08e533
and I'll start a thread on the mailing list.
- Log in to comment
What swig version are you using?