]> git.saurik.com Git - apt.git/commit - apt-pkg/contrib/string_view.h
string_view: Drop constexpr constructor for standard compatibility
authorJulian Andres Klode <jak@debian.org>
Fri, 15 Jan 2016 18:18:29 +0000 (19:18 +0100)
committerJulian Andres Klode <jak@debian.org>
Fri, 15 Jan 2016 18:18:29 +0000 (19:18 +0100)
commitef6cc0e22a2933e0e36bc260179fdf0b86f9ac26
treedd7e7db658d6babcb603b7fd714febc88aeaca84
parent3b4045fc31baf3aa580bd695695d579c30a481b8
string_view: Drop constexpr constructor for standard compatibility

APT::StringView is supposed to be a temporary measure, until support
for the standardized string_view is widely available. Introducing
additional unstandardized features just makes porting to the
standard version harder.

The constexpr constructor also won't have any real effect on most
systems, as the compiler will happily optimise the strlen() call
away for constant strings.

Gbp-Dch: ignore
apt-pkg/contrib/string_view.h
test/libapt/stringview_test.cc