Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
martijntje
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
martijntje
3y ago
If I read that paper correctly, that's only valid if the object can be constructed without code being run - i.e. a trivially constructible type. Since there is no limitation on the no_destroy type, you can create any type with it, incl
2.
▲
by
martijntje
3y ago
It's interesting to see that the complexity of c++ is so great that even the code in standards proposals contains undefined behaviour. The no_destroy class triggers UB when .get() is called, because it fails to launder the returned poi
3.
▲
by
martijntje
3y ago
If you don't care about watermarks, you can try out Resolume for free indefinitely.