noexcept adjustments (#4200)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
parent
fd3b9a6180
commit
152a847dcc
@ -98,7 +98,7 @@ public:
|
||||
* @brief Destructs the contained value, if there is one.
|
||||
*
|
||||
*/
|
||||
void Reset() noexcept /* enforces termination */
|
||||
void Reset() noexcept(std::is_nothrow_destructible<T>::value) /* enforces termination */
|
||||
{
|
||||
if (m_hasValue)
|
||||
{
|
||||
|
||||
@ -139,7 +139,7 @@ namespace Azure { namespace Core {
|
||||
* @brief Gets the current #Azure::Core::OperationStatus of the long-running operation.
|
||||
*
|
||||
*/
|
||||
OperationStatus Status() const noexcept { return m_status; }
|
||||
OperationStatus const& Status() const noexcept { return m_status; }
|
||||
|
||||
/**
|
||||
* @brief Checks if the long-running operation is completed.
|
||||
|
||||
@ -55,7 +55,7 @@ namespace Azure { namespace Core { namespace Http { namespace _detail {
|
||||
DWORD_PTR dwContext,
|
||||
DWORD dwInternetStatus,
|
||||
LPVOID lpvStatusInformation,
|
||||
DWORD dwStatusInformationLength) noexcept;
|
||||
DWORD dwStatusInformationLength);
|
||||
|
||||
/*
|
||||
* Callback from WinHTTP called after the TLS certificates are received when the caller sets
|
||||
|
||||
@ -517,7 +517,7 @@ namespace Azure { namespace Core { namespace Http { namespace _detail {
|
||||
DWORD_PTR dwContext,
|
||||
DWORD internetStatus,
|
||||
LPVOID statusInformation,
|
||||
DWORD statusInformationLength) noexcept
|
||||
DWORD statusInformationLength)
|
||||
{
|
||||
// If we're called before our context has been set (on Open and Close callbacks), ignore the
|
||||
// status callback.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user