We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41984a2 commit b4e899aCopy full SHA for b4e899a
absl/container/fixed_array.h
@@ -41,6 +41,7 @@
41
#include <type_traits>
42
43
#include "absl/algorithm/algorithm.h"
44
+#include "absl/base/attributes.h"
45
#include "absl/base/config.h"
46
#include "absl/base/dynamic_annotations.h"
47
#include "absl/base/internal/throw_delegate.h"
@@ -74,7 +75,7 @@ constexpr static auto kFixedArrayUseDefault = static_cast<size_t>(-1);
74
75
// `std::vector`.
76
template <typename T, size_t N = kFixedArrayUseDefault,
77
typename A = std::allocator<T>>
-class FixedArray {
78
+class ABSL_ATTRIBUTE_WARN_UNUSED FixedArray {
79
static_assert(!std::is_array<T>::value || std::extent<T>::value > 0,
80
"Arrays with unknown bounds cannot be used with FixedArray.");
81
0 commit comments