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:
Roland Kaufmann 2013-05-15 21:32:32 +02:00
parent d3db4922b4
commit fe84822e52

View File

@ -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