Workaround for the MSVC 19.34 bug (#4152)

* Workaround for the MSVC 19.34 bug

* Use _MSC_VER instead of _VSC_FULL_VER (at least 19.34.31931 and .31933 are affected)

* Remove newline

* Use same code for all compiler versions

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
Anton Kolesnyk 2022-12-03 21:16:42 -08:00 committed by GitHub
parent 75285bc4cb
commit 760126502a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,8 +63,8 @@ namespace Azure { namespace Storage { namespace Blobs { namespace Test {
void Run(Azure::Core::Context const& context) override
{
// Loop each page
for (auto page = m_containerClient->ListBlobs({}, context); page.HasPage();
page.MoveToNextPage(context))
auto page = m_containerClient->ListBlobs({}, context);
for (; page.HasPage(); page.MoveToNextPage(context))
{
// loop each blob
for (auto blob : page.Blobs)