Skip to content

Commit 82004d9

Browse files
fix unused variable
1 parent c0d83ec commit 82004d9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tests/0026.container/0001.vector/emplace_back.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#include <cassert>
2-
#include <string>
1+
#include <string>
32
#include <fast_io.h>
43
#include <fast_io_dsal/vector.h>
54
using namespace fast_io::io;
@@ -31,7 +30,11 @@ int main()
3130
fast_io::vector<President> elections;
3231
print("emplace_back:\n");
3332
auto &ref = elections.emplace_back("Nelson Mandela", "South Africa", 1994);
34-
assert(ref.year == 1994 && "uses a reference to the created object (C++17)");
33+
// assert(ref.year == 1994 && "uses a reference to the created object (C++17)");
34+
if (ref.year != 1994)
35+
{
36+
::fast_io::fast_terminate();
37+
}
3538

3639
fast_io::vector<President> reElections;
3740
print("\npush_back:\n");

0 commit comments

Comments
 (0)