-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On OpenBSD string_view is both in boost and std #8955
Conversation
pdns/dnsdistdist/doh.cc
Outdated
{ | ||
bool found = false; | ||
/* early versions of boost::string_ref didn't have the ability to compare to string */ | ||
string_view headerNameView(headerName); | ||
boost::string_view headerNameView(headerName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, we really would like to use std::string_view
when available.. How does lmdb-safe.hh compiles on OpenBSD? Because the string_view
detection is a copy-paste from that code..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I normally don't build lmdb support on OpenBSD. But indeed, it gives similar errors.
1647ae1
to
133a99c
Compare
133a99c
to
ae69f67
Compare
FreeBSD suffers from the same issue. After adding |
189757a
to
7f073b5
Compare
NetBSD 9 does not need this. |
|
clang++ does warn on Arch as well. AFAICT the |
OK, IMO we need a separate PR for that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with the fix for now, but that clearly indicates that we have an issue on some systems where we use C++17's features even though we only require C++11. I hope it will not come back to haunt us later :-/
Short description
Checklist
I have: