News for hackers. Stuff that matters.
Re:Const vs. constexpr vs. consteval vs. constinit in C++20 by cbsmith on Monday November 28, 2022 @03:58PM (#33779524)
Yeah, UFCS remains illusive, but tantalizingly close. It's pretty easy to make

``` struct foo { void bar(); }

bar(foo* i) { assert(i != nullptr); i->bar(); } ```

work, but there's enough syntactic complexity in the language that it isn't as easy as it should be.

Re:Const vs. constexpr vs. consteval vs. constinit in C++20 by kllrnohj on Monday November 28, 2022 @07:36PM (#33782047)
It's a 1-liner with std::mem_fn
Re:Const vs. constexpr vs. consteval vs. constinit in C++20 by cbsmith on Monday November 28, 2022 @10:08PM (#33783234)
Indeed.