diff --git a/src/ifcparse/express.h b/src/ifcparse/express.h index 293cc30e2f..02f4aa1268 100644 --- a/src/ifcparse/express.h +++ b/src/ifcparse/express.h @@ -226,7 +226,11 @@ constexpr bool is_std_vector_vector_v = is_std_vector_vector::value; } template -auto cast_vector(const std::vector& vs) { +typename std::conditional_t< + is_std_vector::value, + std::vector>, + std::vector> +cast_vector(const std::vector& vs) { if constexpr (is_std_vector::value) { using V = typename U::value_type; std::vector> result;