79638524

Date: 2025-05-26 07:58:05
Score: 0.5
Natty:
Report link

A workaround for C++23:

#include <concepts>
#include <iostream>

template <std::regular_invocable<> auto cstr>
void f() {
    std::cout << cstr() << '\n';
}

int main() {
    f<[]{return "template arg";}>();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: shynur