lib/curl/Init: add const overloads

This commit is contained in:
Max Kellermann 2019-04-04 20:06:25 +02:00
parent abe06a5fa6
commit 1de3ac6c78

View File

@ -54,9 +54,17 @@ public:
return *instance; return *instance;
} }
const CurlGlobal &operator*() const noexcept {
return *instance;
}
CurlGlobal *operator->() noexcept { CurlGlobal *operator->() noexcept {
return instance; return instance;
} }
const CurlGlobal *operator->() const noexcept {
return instance;
}
}; };
#endif #endif