--- a/apt-pkg-c/cache.h +++ b/apt-pkg-c/cache.h @@ -32,7 +32,7 @@ // Return a package by name. UniquePtr find_pkg(str name) const { return std::make_unique( - this->unconst()->GetPkgCache()->FindPkg(APT::StringView(name.begin(), name.length())) + this->unconst()->GetPkgCache()->FindPkg(std::string_view(name.begin(), name.length())) ); }