Skip to content

Commit b664217

Browse files
committed
Remove fixme
Fixed by #95596
1 parent 47ebe5e commit b664217

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang-tools-extra/test/clang-tidy/checkers/performance/inefficient-vector-operation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55

66
namespace std {
77

8-
// FIXME: This doesn't work if size_t is not a signed type
9-
typedef int size_t;
8+
typedef decltype(sizeof 0) size_t;
109

1110
template<class E> class initializer_list {
1211
public:
@@ -16,7 +15,8 @@ template<class E> class initializer_list {
1615
using size_type = size_t;
1716
using iterator = const E*;
1817
using const_iterator = const E*;
19-
iterator first, last;
18+
iterator p;
19+
size_t sz;
2020
initializer_list();
2121
size_t size() const; // number of elements
2222
const E* begin() const; // first element

0 commit comments

Comments
 (0)