C++ Logo

std-proposals

Advanced search

Re: Operator for reference casting

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sat, 16 Jan 2021 15:32:50 -0800
On Saturday, 16 January 2021 09:27:05 PST Jason McKesson via Std-Proposals
wrote:
> My understanding is that one of the problems of `std::forward` is that
> heavy usage of it actually impacts compile times, to the point where
> some libraries just do the whole `static_cast` bit directly. So it's
> not *just* a matter of verbosity.

What's stopping compilers from fixing this? One has to assume that once lexed,
there's no reason for it to not apply the same fast implementation to
std::forward as it would to static_cast.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DPG Cloud Engineering

Received on 2021-01-16 17:32:54