On 06/05/2010, Basile Starynkevitch wrote: > > IIRC, (from my human rusty memory, I don't have the documents on hand) > the current standard only requires that variable declared with the > register class should not have their adress taken thru the unary & > operator, and might have some imprecise phrasing about register being > a hint for optimisation. IIRC the C++ language might not have this > requirement (of prohibiting the & unary operator).
In C++ it's only a hint, which the compiler is free to ignore. Its use will be deprecated in C++1x.