[libcxx-commits] [PATCH] D152378: [libc++][filesystem] Use _LIBCPP_HIDE_FROM_ABI in common headers
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 12 10:22:19 PDT 2023
Mordante added inline comments.
================
Comment at: libcxx/src/filesystem/filesystem_common.h:121
template <>
-bool error_value<bool>() {
+inline _LIBCPP_HIDE_FROM_ABI bool error_value<bool>() {
return false;
----------------
ldionne wrote:
> Mordante wrote:
> > IIRC inline is not needed for templates, or am I mistaken?
> This is an explicit specialization, I think those are not linkonce-odr by default. Godbolt confirms this: https://godbolt.org/z/Wzb4Esb35
Thanks for the info!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152378/new/
https://reviews.llvm.org/D152378
More information about the libcxx-commits
mailing list