Fix libc++ const container element incompatibility
Using const container elements like const std::vector<const std::string> a = {"a"}; will fail when building with libc++ on: 'The C++ Standard forbids containers of const elements because allocator<const T> is ill-formed." Electron encountered this issue as we build Chromedriver with libc++. This fixes the issue by changing the elements to non-const std::strings. Bug: 994347 Change-Id: I309a521fa360e3b36beca53354edadc668a9a12f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1756424Reviewed-by:John Chen <johnchen@chromium.org> Reviewed-by:
Nina Satragno <nsatragno@chromium.org> Commit-Queue: Nina Satragno <nsatragno@chromium.org> Cr-Commit-Position: refs/heads/master@{#687662}
Showing
Please register or sign in to comment