diff --git a/samples/client/petstore/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h b/samples/client/petstore/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h index 327dc5c0be2..d05468e43b9 100644 --- a/samples/client/petstore/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h +++ b/samples/client/petstore/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h @@ -244,7 +244,7 @@ bool ModelBase::fromJson( const web::json::value& val, std::vector &outVal ) bool ok = true; if (val.is_array()) { - for (const auto jitem : val.as_array()) + for (const web::json::value & jitem : val.as_array()) { T item; ok &= fromJson(jitem, item);