mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Provide template functions in separate header
Template functions must be defined in the header since the library cannot contain generic code. To keep only the interface in the main header, all such function bodies are put in a separate _impl file.
This commit is contained in:
parent
d3db4922b4
commit
fe84822e52
@ -115,9 +115,7 @@ namespace Opm
|
||||
/// sim.run (...);
|
||||
/// \endcode
|
||||
template <typename T, void (T::*callback)()>
|
||||
void connect_timestep (T& t) {
|
||||
connect_timestep_impl (boost::function0<void> (std::bind (callback, t)));
|
||||
}
|
||||
void connect_timestep (T& t);
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
@ -130,4 +128,6 @@ namespace Opm
|
||||
|
||||
} // namespace Opm
|
||||
|
||||
#include "SimulatorIncompTwophase_impl.hpp"
|
||||
|
||||
#endif // OPM_SIMULATORINCOMPTWOPHASE_HEADER_INCLUDED
|
||||
|
Loading…
Reference in New Issue
Block a user