Making l-value from r-value
<p>I've got quite a nifty get fnc which returns pointer to 'a type'. Now I would like to reuse this fnc in fnc set to set some value to this type returned by get:</p>

<pre><code>template&lt;class Tag,class Type&gt;
set(Type t, some_value)
{
get&lt;Tag&gt;(t) = value;
}
</code></pre>

<p>The only problem I have is that: Because get returns pointer and not reference to a pointer the return type is a rvalue which for most cases is fine but not for this. Is there a way to somehow change the returned value into lvalue?</p>
