Re: C++17 std::launder and aliasing

2016-10-18 Thread Richard Biener
On Tue, Oct 18, 2016 at 1:06 PM, Jakub Jelinek wrote: > Hi! > > http://wg21.link/p0137 > adds std::launder which is supposed to be some kind of aliasing optimization > barrier. > > What is unclear to me is if we really need compiler support for that. > I have unfortunately not found many examples:

C++17 std::launder and aliasing

2016-10-18 Thread Jakub Jelinek
Hi! http://wg21.link/p0137 adds std::launder which is supposed to be some kind of aliasing optimization barrier. What is unclear to me is if we really need compiler support for that. I have unfortunately not found many examples: http://stackoverflow.com/questions/39382501/what-is-the-purpose-of-