Azure / azure-storage-cpp

Microsoft Azure Storage Client Library for C++
http://azure.github.io/azure-storage-cpp
Apache License 2.0
132 stars 147 forks source link

error C4172: returning address of local variable or temporary #275

Closed CloudyMcFox closed 5 years ago

CloudyMcFox commented 5 years ago

cloud_core.cpp::get_wastorage_ambient_scheduler is returning a ref to a temporary because pplx::get_ambient_scheduler returns by value.

katmsft commented 5 years ago

This is identified as a bug and will be fixed soon.

katmsft commented 5 years ago

BTW, the functionality is tested, there isn't any functionality issue since compiler (VS Compiler >=1900) will optimize the behavior of returning local variable of temporary as const reference.

Jinming-Hu commented 5 years ago

Fixed in Release 7.0.0