@@ -259,7 +259,7 @@ TEMPLATE_TEST_CASE(
259259 auto element = test_format_specific::element_unit ();
260260 bsoncxx::document::value doc =
261261 make_document (kvp (" vector" , [&](sub_binary sbin) { sbin.allocate (TestType{}, 1u )[0u ] = element; }));
262- types::b_binary const & binary = doc.view ()[" vector" ].get_binary ();
262+ auto const binary = doc.view ()[" vector" ].get_binary ();
263263 CHECK (binary.sub_type == binary_sub_type::k_vector);
264264 binary_eq_bytes (binary, expected_bytes);
265265 vector::accessor<TestType const > validate_encoded{binary};
@@ -282,7 +282,7 @@ TEMPLATE_TEST_CASE(
282282 });
283283 BSONCXX_PRIVATE_WARNINGS_POP ();
284284 }));
285- types::b_binary const & binary = doc.view ()[" vector" ].get_binary ();
285+ auto const binary = doc.view ()[" vector" ].get_binary ();
286286 vector::accessor<TestType const > validate_encoded{binary};
287287 CHECK (binary.size > 1000u );
288288 }
@@ -302,7 +302,7 @@ TEMPLATE_TEST_CASE(
302302 CHECK_FALSE (value == element_unit);
303303 });
304304 }));
305- types::b_binary const & binary = doc.view ()[" vector" ].get_binary ();
305+ auto const binary = doc.view ()[" vector" ].get_binary ();
306306 vector::accessor<TestType const > validate_encoded{binary};
307307 CHECK (binary.size > 1000u );
308308 }
@@ -325,7 +325,7 @@ TEMPLATE_TEST_CASE(
325325
326326 BSONCXX_PRIVATE_WARNINGS_POP ();
327327 }));
328- types::b_binary const & binary = doc.view ()[" vector" ].get_binary ();
328+ auto const binary = doc.view ()[" vector" ].get_binary ();
329329 vector::accessor<TestType const > validate_encoded{binary};
330330 }
331331
@@ -341,7 +341,7 @@ TEMPLATE_TEST_CASE(
341341 CHECK (vec.byte_at (vec.byte_size () - 2 ) == vec.byte_at (vec.byte_size () - 1 ));
342342 CHECK_FALSE (vec.byte_at (vec.byte_size () - 2 ) != vec.byte_at (vec.byte_size () - 1 ));
343343 }));
344- types::b_binary const & binary = doc.view ()[" vector" ].get_binary ();
344+ auto const binary = doc.view ()[" vector" ].get_binary ();
345345 vector::accessor<TestType const > validate_encoded{binary};
346346 }
347347
@@ -381,7 +381,7 @@ TEMPLATE_TEST_CASE(
381381
382382 BSONCXX_PRIVATE_WARNINGS_POP ();
383383 }));
384- types::b_binary const & binary = doc.view ()[" vector" ].get_binary ();
384+ auto const binary = doc.view ()[" vector" ].get_binary ();
385385 vector::accessor<TestType const > validate_encoded{binary};
386386 }
387387
@@ -408,7 +408,7 @@ TEMPLATE_TEST_CASE(
408408
409409 BSONCXX_PRIVATE_WARNINGS_POP ();
410410 }));
411- types::b_binary const & binary = doc.view ()[" vector" ].get_binary ();
411+ auto const binary = doc.view ()[" vector" ].get_binary ();
412412 vector::accessor<TestType const > validate_encoded{binary};
413413 }
414414}
@@ -526,7 +526,7 @@ TEST_CASE("vector accessor packed_bit", "[bsoncxx::vector::accessor]") {
526526 CHECK (vec.byte_at (0 ) == 0xaa );
527527 CHECK (vec.byte_at (1 ) == 0x80 );
528528 }));
529- types::b_binary const & binary = doc.view ()[" vector" ].get_binary ();
529+ auto const binary = doc.view ()[" vector" ].get_binary ();
530530 CHECK (binary.sub_type == binary_sub_type::k_vector);
531531 std::array<std::uint8_t , 4 > expected_bytes{0x10 , 7 , 0xaa , 0x80 };
532532 binary_eq_bytes (binary, expected_bytes);
@@ -571,7 +571,7 @@ TEST_CASE("vector accessor packed_bit", "[bsoncxx::vector::accessor]") {
571571 CHECK (vec.byte_back () == std::uint8_t (0xFF << padding));
572572 }
573573 }));
574- types::b_binary const & binary = doc.view ()[" vector" ].get_binary ();
574+ auto const binary = doc.view ()[" vector" ].get_binary ();
575575 CHECK (binary.sub_type == binary_sub_type::k_vector);
576576 vector::accessor<vector::formats::f_packed_bit const > vec{binary};
577577 REQUIRE (vec.size () == element_count);
0 commit comments