diff --git a/vowpalwabbit/fb_parser/tests/read_span_tests.cc b/vowpalwabbit/fb_parser/tests/read_span_tests.cc index cd6316a13cb..5622be90dae 100644 --- a/vowpalwabbit/fb_parser/tests/read_span_tests.cc +++ b/vowpalwabbit/fb_parser/tests/read_span_tests.cc @@ -178,13 +178,15 @@ Offset create_bad_ns_root_collection( { if VW_STD17_CONSTEXPR (multiline) { - auto inner_examples = {create_bad_ns_root_multiex(builder, w, ns_fac)}; + // using "auto" here breaks the code coverage build due to template substitution failure + std::vector> inner_examples = {create_bad_ns_root_multiex(builder, w, ns_fac)}; return fb::CreateExampleCollection(builder, builder.CreateVector(std::vector>()), builder.CreateVector(inner_examples), multiline); } else { - auto inner_examples = {create_bad_ns_root_example(builder, w, ns_fac)}; + // using "auto" here breaks the code coverage build due to template substitution failure + std::vector> inner_examples = {create_bad_ns_root_example(builder, w, ns_fac)}; return fb::CreateExampleCollection(builder, builder.CreateVector(inner_examples), builder.CreateVector(std::vector>()), multiline); }