Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

clang + libc++ + c++17 errors #24

Open
yasushi-saito opened this issue May 21, 2018 · 0 comments
Open

clang + libc++ + c++17 errors #24

yasushi-saito opened this issue May 21, 2018 · 0 comments

Comments

@yasushi-saito
Copy link

"using namespace std;" in farmhash.cc causes the following error:
you should remove the "using namespace std" from the source code.

lib/hash/farmhash.cc:2006:14: error: reference to 'data' is ambiguous
memcpy(data + i, &u, 1); // uint8_t -> char
^
lib/hash/farmhash.cc:1990:13: note: candidate found by name lookup is 'data'
static char data[kDataSize];
^
/scratch-nvme/saito/bazel/_bazel_ysaito/e1a7c710473372ee150f48ad758734b2/external/grail_toolchain/include/c++/v1/iterator:1876:22: note: candidate found by name lookup is 'std::__1::data'
constexpr const _Ep* data(initializer_list<_Ep> __il) noexcept { return __il.begin(); }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant