question

NeillClift-4442 avatar image
0 Votes"
NeillClift-4442 asked SumanthMarigowda-MSFT answered

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered

@NeillClift-4442 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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.