Azure storage not compiling under clang with -std=c++20 after upgrade to VS2022

Neill Clift 21 Reputation points

A simple program that does nothing but include headers shows this. Set compiler to clang. Turn off vcpkg and set standard level.

#include <iostream>
#include <was/storage_account.h>
#include <was/queue.h>

int main()
std::cout << "Hello World!\n";

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\type_traits(746,50): error : incomplete type 'azure::storage::cloud_queue' used in type trait expression
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\type_traits(59,53): message : in instantiation of template class 'std::is_trivially_destructible<azure::storage::cloud_queue>' requested here
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include\type_traits(64,44): message : in instantiation of template class 'std::conjunction<std::is_trivially_destructible<azure::storage::cloud_queue>, std::disjunction<std::_Is_default_allocator<std::allocator<azure::storage::cloud_queue>>, std::_Has_no_alloc_destroy<std::allocator<azure::storage::cloud_queue>, azure::storage::cloud_queue *>>>' requested here

I think what's changed for me recently is the installation of VS2022.

Azure Queue Storage
Azure Queue Storage
An Azure service that provides messaging queues in the cloud.
78 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 35,036 Reputation points Microsoft Employee

    @Neill Clift Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    For a specialized assistance on DevOps query I'd recommend posting your question in Developer Community , to receive a focused and immediate assistance from the right set of experts. it would the better medium to get better help since the issue doesn't seem to be storage.

    Please let us know if you have any further queries. I’m happy to assist you further.


    Please do not forget to 196577-screenshot-2021-12-10-121802.pngand “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments