microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.91k stars 1.64k forks source link

Unable to build with clang-cl #1712

Open Neumann-A opened 1 year ago

Neumann-A commented 1 year ago
/// <returns>0 if the read request is still outstanding, -1 if the request failed, otherwise the size of the data read
/// into the buffer</returns>
size_t _read_file_async(.....
auto res =_read_file_async();
switch(res) {
case(-1): <- clang-cl will rightfully reject this since -1 is never returned 
}