Date: Mon, 26 Jun 2023 07:30:39 +0100
> On Wed, Jun 21, 2023 at 5:24 PM Михаил Найденов wrote:
> >
> > Proposed is to have a postscript operator &&, which either moves or forwards.
Personally I like the idea of having '^^' as a unary operator that
works as either 'move' or 'forward':
template<class T>
void Func(T &&arg)
{
static T obj;
obj = ^^arg;
}
> >
> > Proposed is to have a postscript operator &&, which either moves or forwards.
Personally I like the idea of having '^^' as a unary operator that
works as either 'move' or 'forward':
template<class T>
void Func(T &&arg)
{
static T obj;
obj = ^^arg;
}
Received on 2023-06-26 06:30:52