From 5359675e6c7684bd4153adaf3cc0f59442cdc291 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 24 Mar 2016 15:11:05 +0100 Subject: Set hidden visibility for StringView This avoids templates using StringView to be exported, such as std::vector::emplace_back(). Gbp-Dch: ignore --- apt-pkg/contrib/string_view.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apt-pkg/contrib/string_view.h b/apt-pkg/contrib/string_view.h index d4ff80028..f158ef8d6 100644 --- a/apt-pkg/contrib/string_view.h +++ b/apt-pkg/contrib/string_view.h @@ -13,6 +13,7 @@ #define APT_STRINGVIEW_H #include #include +#include namespace APT { @@ -23,7 +24,7 @@ namespace APT { * used by APT. It is not meant to be used in programs, only inside the * library for performance critical paths. */ -class StringView { +class APT_HIDDEN StringView { const char *data_; size_t size_; -- cgit v1.2.3