summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-03-24 15:11:05 +0100
committerJulian Andres Klode <jak@debian.org>2016-03-24 15:16:00 +0100
commit5359675e6c7684bd4153adaf3cc0f59442cdc291 (patch)
tree03f0d24c7bbae0a6d9205e63d3b60ad3542aaa16 /apt-pkg
parent4b4cada140b588379fa32ecee2a55bf11e946c5f (diff)
Set hidden visibility for StringView
This avoids templates using StringView to be exported, such as std::vector<StringView*>::emplace_back(). Gbp-Dch: ignore
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/string_view.h3
1 files changed, 2 insertions, 1 deletions
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 <string.h>
#include <string>
+#include <apt-pkg/macros.h>
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_;