[libcxx-commits] [PATCH] D156508: [libc++][Modules] Fix a few module related warnings
Ian Anderson via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 27 23:42:13 PDT 2023
iana added a comment.
An example warning I'm hitting locally:
In module 'std_private_algorithm_copy_n' imported from /.../usr/include/c++/v1/__string/char_traits.h:12:
/.../usr/include/c++/v1/__algorithm/copy_n.h:57:1: warning: inline function 'std::copy_n<const char *, unsigned long, char *>' is not defined [-Wundefined-inline]
copy_n(_InputIterator __first, _Size __orig_n, _OutputIterator __result)
^
/.../usr/include/c++/v1/__string/char_traits.h:242:14: note: used here
std::copy_n(__s2, __n, __s1);
^
The only way I could find to fix that warning was to make the `std_private_string_char_traits` module `export *`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156508/new/
https://reviews.llvm.org/D156508
More information about the libcxx-commits
mailing list