#1707 Replace class BoundarySegment by std::function
Metadata
Property | Value |
---|---|
Reported by | Oliver Sander (oliver.sander@tu-dresden.de) |
Reported at | Aug 17, 2015 08:45 |
Type | Feature Request |
Version | Git (pre2.4) [cmake] |
Operating System | Unspecified / All |
Last edited by | Oliver Sander (oliver.sander@tu-dresden.de) |
Last edited at | Aug 17, 2015 13:12 |
Closed by | Oliver Sander (oliver.sander@tu-dresden.de) |
Closed at | Aug 17, 2015 13:12 |
Closed in version | Unknown |
Resolution | Won't implement |
Comment |
Description
dune-grid contains the rarely used class BoundarySegment, which is a pure virtual abstract base class to callables implementing boundary segment parametrizations. Here is the class, it is very short:
template< int dim, int dimworld = dim > struct BoundarySegment { virtual ~BoundarySegment() {}
virtual FieldVector< double, dimworld > operator() ( const FieldVector< double, dim-1> &local ) const = 0; };
C++11 has brought us std::function, which does something similar, but is much more powerful. Can we drop BoundarySegment for std::function (by the usual procedure etc)?
See also FS 1677.