From 3a6c4ab1b6fc79a6a543088553cdd6bc8cb0a1dd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 21 May 2018 21:10:09 +0300 Subject: Adapt to inventing package_name type --- bpkg/system-repository.hxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bpkg/system-repository.hxx') diff --git a/bpkg/system-repository.hxx b/bpkg/system-repository.hxx index eeddf39..ba42b0e 100644 --- a/bpkg/system-repository.hxx +++ b/bpkg/system-repository.hxx @@ -7,7 +7,8 @@ #include -#include +#include // version +#include #include #include @@ -36,17 +37,17 @@ namespace bpkg { public: const version& - insert (const string& name, const version&, bool authoritative); + insert (const package_name& name, const version&, bool authoritative); const system_package* - find (const string& name) + find (const package_name& name) { auto i (map_.find (name)); return i != map_.end () ? &i->second : nullptr; } private: - std::map map_; + std::map map_; }; extern system_repository_type system_repository; -- cgit v1.1