Commit b0c50f7e authored by Florian Oetke's avatar Florian Oetke
Browse files

fixed return type of asset::Ptr::get_if_ready()

parent 5fcb3d0f
Pipeline #2272 passed with stage
in 4 minutes and 7 seconds
......@@ -65,7 +65,7 @@ namespace mirrage::asset {
auto aid() const noexcept -> const AID& { return _aid; }
auto get_blocking() const -> const R&;
auto get_if_ready() const -> util::maybe<R&>;
auto get_if_ready() const -> util::maybe<const R&>;
auto ready() const -> bool;
auto internal_task() const -> auto& { return _task; }
void reset();
......
......@@ -20,7 +20,7 @@ namespace mirrage::asset {
}
template <class R>
auto Ptr<R>::get_if_ready() const -> util::maybe<R&>
auto Ptr<R>::get_if_ready() const -> util::maybe<const R&>
{
if(_cached_result)
return util::justPtr(_cached_result);
......
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