]> granicus.if.org Git - clang/commit
Rename a helper template function to 'bytes' to avoid a C++17 STL conflict
authorReid Kleckner <reid@kleckner.net>
Thu, 21 May 2015 00:13:09 +0000 (00:13 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 21 May 2015 00:13:09 +0000 (00:13 +0000)
commit8c8234e5e44a9e61f065fa2ad93da6e56128c69b
treebcdf8c3ebfb247576326efd79b91d5317c0c7347
parent6ac6be55428552b69ed91c4c5c49507bb10bf6cc
Rename a helper template function to 'bytes' to avoid a C++17 STL conflict

MSVC 2015 includes the std::data() template function added to C++17. ADL
causes both cl.exe and clang-cl to prefer std::data over our static
helper here, and we get errors about converting int64_t* to StringRef.
Renaming it to bytes avoids the ambiguity.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237863 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTWriter.cpp