From 1de3ac6c78f2ff1b99e59c94a4ed016aa6718fb1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 4 Apr 2019 20:06:25 +0200 Subject: [PATCH] lib/curl/Init: add `const` overloads --- src/lib/curl/Init.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/curl/Init.hxx b/src/lib/curl/Init.hxx index d19655a31..4256f2603 100644 --- a/src/lib/curl/Init.hxx +++ b/src/lib/curl/Init.hxx @@ -54,9 +54,17 @@ public: return *instance; } + const CurlGlobal &operator*() const noexcept { + return *instance; + } + CurlGlobal *operator->() noexcept { return instance; } + + const CurlGlobal *operator->() const noexcept { + return instance; + } }; #endif