cmUVHandlePtr: Add explicit uv_loop_ptr::operator*

Previously the dereferencing operator was implicitly available
due to `operator uv_loop_t*() const`.  Make it explicit.
This commit is contained in:
Brad King
2023-10-30 16:02:26 -04:00
parent 773fd7e05d
commit bec0dd93a3
2 changed files with 6 additions and 0 deletions

View File

@@ -54,6 +54,11 @@ uv_loop_t* uv_loop_ptr::operator->() const noexcept
return this->loop.get();
}
uv_loop_t& uv_loop_ptr::operator*() const
{
return *this->loop;
}
uv_loop_t* uv_loop_ptr::get() const
{
return this->loop.get();

View File

@@ -65,6 +65,7 @@ public:
uv_loop_t* get() const;
uv_loop_t* operator->() const noexcept;
uv_loop_t& operator*() const;
};
/***