Commit 76287636 authored by Tom Niget's avatar Tom Niget

Add operator-> to Forked

parent 9c9a3751
...@@ -107,6 +107,11 @@ namespace typon ...@@ -107,6 +107,11 @@ namespace typon
} }
return std::move(_value); return std::move(_value);
} }
auto operator->() &
{
return this;
}
}; };
...@@ -168,6 +173,11 @@ namespace typon ...@@ -168,6 +173,11 @@ namespace typon
} }
return *(reinterpret_cast<T *>(_data)); return *(reinterpret_cast<T *>(_data));
} }
auto operator->() &
{
return this;
}
}; };
...@@ -233,6 +243,11 @@ namespace typon ...@@ -233,6 +243,11 @@ namespace typon
{ {
return _result->value(); return _result->value();
} }
auto operator->() &
{
return this;
}
}; };
} }
......
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