trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2020

Re: [trinity-devel] "register int" still needed?

From: "David C. Rankin" <drankinatty@...>
Date: Tue, 18 Feb 2020 13:44:56 -0600
On 02/14/2020 06:51 AM, Sl�vek Banko wrote:
> Probably such can be removed as well.
> 

Yes, in the past 'register' was a hint to the compiler to keep that value
stored in a register for faster access (a holdover from C). It was deprecated
in C++11 and slated for removal in C++17. See:

open-std.org  Doc. no. N4340
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4340.html

-- 
David C. Rankin, J.D.,P.E.