#1662 Foamgrid Copy Constructor Issue
Metadata
Property | Value |
---|---|
Reported by | Timo Betcke (timo.betcke@gmail.com) |
Reported at | Jun 8, 2015 18:16 |
Type | Bug Report |
Version | 2.3 |
Operating System | Mac OS |
Last edited by | Christoph Grüninger (gruenich@iws.uni-stuttgart.de) |
Last edited at | Jun 8, 2015 20:56 |
Closed by | Christoph Grüninger (gruenich@iws.uni-stuttgart.de) |
Closed at | Jun 8, 2015 20:56 |
Closed in version | Unknown |
Resolution | Not a bug |
Comment | This is not the bug tracker for FoamGrid. |
Description
Dear All,
I have just checked out the Foamgrid master branch and tried it. But I am getting the following issue with a deleted copy constructor:
/usr/local/include/dune/foamgrid/foamgrid.hh:180:13: error: returning object of type 'typename Traits::Codim<2>::LevelIterator' (aka 'EntityIterator<2, const Dune::FoamGrid<2, 3>, FoamGridLevelIterator<2, (Dune::PartitionIteratorType)4U, const Dune::FoamGrid<2, 3> > >') invokes deleted constructor return Dune::FoamGridLevelIterator<codim,All_Partition, const Dune::FoamGrid<dimgrid, dimworld> >(Dune::get(entityImps_[level]).end()); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/dune/foamgrid/foamgrid/foamgridindexsets.hh:355:106: note: in instantiation of function template specialization 'Dune::FoamGrid<2, 3>::lend<2>' requested here typename GridImp::Traits::template Codim::LevelIterator vEndIt = grid_.template lend(i); ^ /usr/local/include/dune/foamgrid/foamgrid/foamgrid.cc:938:17: note: in instantiation of member function 'Dune::FoamGridLeafIndexSet<const Dune::FoamGrid<2, 3> >::update' requested here leafIndexSet_.update(); ^ /usr/local/include/dune/foamgrid/foamgrid/foamgridfactory.hh:327:26: note: in instantiation of member function 'Dune::FoamGrid<2, 3>::setIndices' requested here this->grid_->setIndices(); ^ include/bempp/grid/structured_grid_factory.hpp:288:46: note: in instantiation of member function 'Dune::GridFactory<Dune::FoamGrid<2, 3> >::createGrid' requested here return std::unique_ptr(factory.createGrid()); ^ ../tests/unit/grid/simple_triangular_grid_manager.cpp:62:13: note: in instantiation of member function 'Dune::BemppStructuredGridFactory<Dune::FoamGrid<2, 3> >::createSimplexGrid' requested here createSimplexGrid(duneLowerLeft, duneUpperRight, duneNElements); ^ /usr/local/include/dune/grid/common/entityiterator.hh:36:7: note: copy constructor of 'EntityIterator<2, const Dune::FoamGrid<2, 3>, Dune::FoamGridLevelIterator<2, 4, const Dune::FoamGrid<2, 3> > >' is implicitly deleted because base class 'EntityPointer<const Dune::FoamGrid<2, 3>, Dune::FoamGridLevelIterator<2, 4, const Dune::FoamGrid<2, 3> > >' has a deleted copy constructor : public EntityPointer< Grid, IteratorImp > ^ /usr/local/include/dune/grid/common/entitypointer.hh:116:20: note: copy constructor of 'EntityPointer<const Dune::FoamGrid<2, 3>, Dune::FoamGridLevelIterator<2, 4, const Dune::FoamGrid<2, 3> > >' is implicitly deleted because field 'realIterator' has a deleted copy constructor Implementation realIterator; ^ /usr/local/include/dune/foamgrid/foamgrid/foamgridleveliterator.hh:20:5: note: copy constructor of 'FoamGridLevelIterator<2, 4, const Dune::FoamGrid<2, 3> >' is implicitly deleted because base class 'Dune::FoamGridEntityPointer<2, const FoamGrid<2, 3> >' has a deleted copy constructor public Dune::FoamGridEntityPointer <codim, GridImp> ^ /usr/local/include/dune/foamgrid/foamgrid/foamgridentitypointer.hh:76:16: note: copy constructor of 'FoamGridEntityPointer<2, const Dune::FoamGrid<2, 3> >' is implicitly deleted because field 'virtualEntity_' has an inaccessible copy constructor Entity virtualEntity_;
I'd be grateful for any help. Best wishes
Timo