Commit c5fec4ac authored by Max Kellermann's avatar Max Kellermann

lib/curl/Multi: move operator bool() down

parent fe2ca1dd
...@@ -69,15 +69,15 @@ public: ...@@ -69,15 +69,15 @@ public:
curl_multi_cleanup(handle); curl_multi_cleanup(handle);
} }
operator bool() const noexcept {
return handle != nullptr;
}
CurlMulti &operator=(CurlMulti &&src) noexcept { CurlMulti &operator=(CurlMulti &&src) noexcept {
std::swap(handle, src.handle); std::swap(handle, src.handle);
return *this; return *this;
} }
operator bool() const noexcept {
return handle != nullptr;
}
CURLM *Get() noexcept { CURLM *Get() noexcept {
return handle; return handle;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment