diff options
author | Mark de Wever <koraq@xs4all.nl> | 2023-05-01 17:50:55 +0200 |
---|---|---|
committer | Mark de Wever <koraq@xs4all.nl> | 2023-05-02 17:55:16 +0200 |
commit | d5442761f9442a23ce235b749388a52ee5ed1fae (patch) | |
tree | ff4908c0a674ed41564881e62aa79b503e700461 /libcxx | |
parent | 45905b53f0eddb7b07a35a9a493a5ebd508bedda (diff) | |
download | llvm-d5442761f9442a23ce235b749388a52ee5ed1fae.tar.gz |
[libc++][ranges] Fixes as_rvalue's linkage.
This was discovered while working on modules. They can't export
declarations with internal linkage.
Reviewed By: #libc, philnik
Differential Revision: https://reviews.llvm.org/D149593
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/include/__ranges/as_rvalue_view.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/__ranges/as_rvalue_view.h b/libcxx/include/__ranges/as_rvalue_view.h index 422d8a8e0834..c4b1a51b5e2e 100644 --- a/libcxx/include/__ranges/as_rvalue_view.h +++ b/libcxx/include/__ranges/as_rvalue_view.h @@ -125,7 +125,7 @@ struct __fn : __range_adaptor_closure<__fn> { } // namespace __as_rvalue inline namespace __cpo { -constexpr auto as_rvalue = __as_rvalue::__fn{}; +inline constexpr auto as_rvalue = __as_rvalue::__fn{}; } // namespace __cpo } // namespace views } // namespace ranges |