@@ -67,7 +67,7 @@ int DestructionCounter::destructor_count = 0;
6767// A simple test case to check the basic constructor and accessors with a simple type.
6868TEST_CASE (" FixedVector Construction and basic accessors" ," [FixedVector]" ) {
6969 constexpr size_t capacity = 5 ;
70- FixedVector<int > vec ( capacity) ;
70+ FixedVector<int > vec { capacity } ;
7171
7272 // Initial state check
7373 CHECK (vec.size () == 0 );
@@ -111,7 +111,7 @@ TEST_CASE("FixedVector Generator constructor (tuple)","[FixedVector]") {
111111// Test emplace_back, pop_back, and clear with a complex type.
112112TEST_CASE (" FixedVector Manipulation (emplace_back, pop_back, clear)" ," [FixedVector]" ) {
113113 constexpr size_t capacity = 4 ;
114- FixedVector<ComplexType> vec ( capacity) ;
114+ FixedVector<ComplexType> vec { capacity } ;
115115
116116 // Emplace elements with multiple arguments
117117 vec.emplace_back (1 , " hello" );
@@ -153,7 +153,7 @@ TEST_CASE("FixedVector Manipulation (emplace_back, pop_back, clear)","[FixedVect
153153// Test that accessor methods return references to the same memory location
154154TEST_CASE (" FixedVector Accessor reference consistency" ," [FixedVector]" ) {
155155 constexpr size_t capacity = 3 ;
156- FixedVector<int > vec ( capacity) ;
156+ FixedVector<int > vec { capacity } ;
157157
158158 vec.emplace_back (1 );
159159 CHECK (&vec.front () == &vec.back ());
@@ -171,7 +171,7 @@ TEST_CASE("FixedVector Accessor reference consistency","[FixedVector]") {
171171// Test with a non-copyable and non-movable type to ensure in-place construction.
172172TEST_CASE (" FixedVector Non-copyable, non-movable type" ," [FixedVector]" ) {
173173 constexpr size_t capacity = 2 ;
174- FixedVector<NonCopyableNonMovable> vec ( capacity) ;
174+ FixedVector<NonCopyableNonMovable> vec { capacity } ;
175175
176176 // This should work because emplace_back constructs in place
177177 const int value0 = 1 ;
@@ -196,7 +196,7 @@ TEST_CASE("FixedVector Destruction, Clear, and Refill","[FixedVector]") {
196196
197197 {
198198 // Use a scope to test the FixedVector's destructor
199- FixedVector<DestructionCounter> vec ( capacity) ;
199+ FixedVector<DestructionCounter> vec { capacity } ;
200200
201201 // Emplace a few objects
202202 vec.emplace_back ();
0 commit comments