Personal channel of @lancern

Topics: programming, hacking, memes, life, and more. Forward anything as you wish.

Join the discussion group for more fun.

Discord: https://discord.gg/RwUx9et7
时隔一年多重新开始用 GitHub Copilot,主要用于生成测试,真舒服
今日C++无用冷知识两则:

1. 以下两种写法是合法且等价的:
typedef int i32;
int typedef i32;


2. 下面的模板函数定义是合法的;
template <typename ...T>
void test(T......) {}


它等价于:
template <typename ...T>
void test(T..., ...) {}
Cake – C23 and Beyond (2023) (Score: 150+ in 9 hours)

Link: https://readhacker.news/s/62ztr
Comments: https://readhacker.news/c/62ztr
Towards memory safety with ownership checks for C http://thradams.com/cake/ownership.html
今日返工✈️
P2758: Emitting messages at compile time

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2758r2.html

TLDR:允许在constant expression求值期间以格式化字符串形式输出编译信息/警告/错误消息
Back to Top