GetVersion implemented in base archive

This commit is contained in:
Christopher Lackner 2018-12-18 11:48:56 +01:00
parent 5952884a6a
commit 2458fd6e1c

View File

@ -113,7 +113,8 @@ namespace ngcore
bool Output () const { return is_output; } bool Output () const { return is_output; }
bool Input () const { return !is_output; } bool Input () const { return !is_output; }
virtual const VersionInfo& GetVersion(const std::string& library) = 0; virtual const VersionInfo& GetVersion(const std::string& library)
{ return GetLibraryVersions()[library]; }
// Pure virtual functions that have to be implemented by In-/OutArchive // Pure virtual functions that have to be implemented by In-/OutArchive
virtual Archive & operator & (double & d) = 0; virtual Archive & operator & (double & d) = 0;