From 2458fd6e1ccff04f670a8ffc10fcac0c20edd640 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 18 Dec 2018 11:48:56 +0100 Subject: [PATCH] GetVersion implemented in base archive --- libsrc/core/archive.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsrc/core/archive.hpp b/libsrc/core/archive.hpp index 3dfe1baa..bb3e1488 100644 --- a/libsrc/core/archive.hpp +++ b/libsrc/core/archive.hpp @@ -113,7 +113,8 @@ namespace ngcore bool Output () 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 virtual Archive & operator & (double & d) = 0;