Commit a4c9414e authored by Hans Wennborg's avatar Hans Wennborg Committed by Commit Bot

Drop 'const' from arguments that expect a deduced function-ptr type

Apparently the cv-qualifier of a function type must match,
during deduction, see http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1584

Recent Clang versions error about this so the code must be adjusted.

Bug: 840251
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: I715da586731ee97a7c5bfc27b522454dac14d316
Reviewed-on: https://chromium-review.googlesource.com/1046588
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by: default avatarMax Morin <maxmorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#556395}
parent 84578181
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
namespace { namespace {
struct dyld_interpose_tuple { struct dyld_interpose_tuple {
template <typename T> template <typename T>
dyld_interpose_tuple(const T* replacement, const T* replacee) dyld_interpose_tuple(T* replacement, T* replacee)
: replacement(reinterpret_cast<const void*>(replacement)), : replacement(reinterpret_cast<const void*>(replacement)),
replacee(reinterpret_cast<const void*>(replacee)) {} replacee(reinterpret_cast<const void*>(replacee)) {}
const void* replacement; const void* replacement;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment