Date: Mon, 21 Feb 2022 19:41:55 +0000
C++ std seems to make it clear that:
*std::launder(foo+4)
works if foo is a pointer to storage.
Does :
std::launder(foo)[4]
Also work? I see examples of people using it on stack overflow, but I cannot parse the standardese to conclude this is allowed.
*std::launder(foo+4)
works if foo is a pointer to storage.
Does :
std::launder(foo)[4]
Also work? I see examples of people using it on stack overflow, but I cannot parse the standardese to conclude this is allowed.
Received on 2022-02-21 19:42:00