[libcxx-commits] [libcxx] [libc++] Flat containers should reject `vector<bool, Alloc>` (PR #224886)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Sep 20 00:19:31 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- libcxx/include/__flat_map/flat_map.h libcxx/include/__flat_map/flat_multimap.h libcxx/include/__flat_set/flat_multiset.h libcxx/include/__flat_set/flat_set.h libcxx/include/__fwd/vector.h libcxx/test/std/containers/container.adaptors/flat.map/types.verify.cpp libcxx/test/std/containers/container.adaptors/flat.multimap/types.verify.cpp libcxx/test/std/containers/container.adaptors/flat.multiset/types.verify.cpp libcxx/test/std/containers/container.adaptors/flat.set/types.verify.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__fwd/vector.h b/libcxx/include/__fwd/vector.h
index 4662b20a4..afeb76565 100644
--- a/libcxx/include/__fwd/vector.h
+++ b/libcxx/include/__fwd/vector.h
@@ -25,7 +25,7 @@ template <class _Allocator>
class vector<bool, _Allocator>;
template <class _Tp>
-inline constexpr bool __is_vector_bool_v = false;
+inline constexpr bool __is_vector_bool_v = false;
template <class _Allocator>
inline constexpr bool __is_vector_bool_v<vector<bool, _Allocator>> = true;
``````````
</details>
https://github.com/llvm/llvm-project/pull/224886
More information about the libcxx-commits
mailing list