笔记:When Nanoseconds Matter, Ultrafast Trading Systems in C++
https://zhuanlan.zhihu.com/p/1917316511711867603
https://cppcon.org/2024grossprerelease/
https://zhuanlan.zhihu.com/p/1917316511711867603
https://cppcon.org/2024grossprerelease/
对于继承和虚函数的“滥用”反而是被发现的,是需求创造了这些复杂设计
https://www.zhihu.com/question/547885140/answer/2626923970
https://www.zhihu.com/question/547885140/answer/2626923970
New C++
重新研究了一会之后我确信 argparse 在 xmake-repo 中的远程包并没有做 modules 支持 所以,我出手了(暂时还没有,预定一个坑位先)
出手了一半,给 argparse 发了个 PR 修复一下自带的 xmake.lua 在模块支持这块的 bug
https://github.com/p-ranav/argparse/pull/406
等合并之后去修改 xmake-repo
https://github.com/p-ranav/argparse/pull/406
等合并之后去修改 xmake-repo
GitHub
Fix C++ Modules support in xmake.lua by KeqingMoe · Pull Request #406 · p-ranav/argparse
The current argparse provides an xmake.lua, but for unknown reasons, it is not used by the argparse remote package in xmake-repo, and that remote package doesn't provide C++ Modules support...
P1300R0: Remember the FORTRAN
https://www.open-std.org/JTC1/SC22/WG21/docs/papers/2018/p1300r0.pdf
https://www.open-std.org/JTC1/SC22/WG21/docs/papers/2018/p1300r0.pdf
https://www.zhihu.com/question/20200615/answer/2408501062
说得很对,非破坏性移动的缺点很多时候都被忽略了。今年委员会那边好像有重视起来重定位语义/破坏性移动的重要性,但是好像因为一些原因导致暂时没什么搞头
说得很对,非破坏性移动的缺点很多时候都被忽略了。今年委员会那边好像有重视起来重定位语义/破坏性移动的重要性,但是好像因为一些原因导致暂时没什么搞头
类型萃取,树形结构,可视化
https://github.com/16bit-ykiko/magic-cpp
https://www.zhihu.com/question/628409525/answer/3328133464
https://github.com/16bit-ykiko/magic-cpp
https://www.zhihu.com/question/628409525/answer/3328133464
GitHub
GitHub - 16bit-ykiko/magic-cpp: A C++20 header-only library that supports powerful reflection for C++
A C++20 header-only library that supports powerful reflection for C++ - 16bit-ykiko/magic-cpp
P3324R0: Attributes for namespace aliases, template parameters, and lambda captures
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3324r0.html
想到找这个主要是因为每次写
都会被 clang-tidy 弹警告,说我未使用(实际上是在别的地方使用)。查了下并不能加属性,不然就加个
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3324r0.html
想到找这个主要是因为每次写
namespace ranges = std::ranges;
namespace views = std::views;
都会被 clang-tidy 弹警告,说我未使用(实际上是在别的地方使用)。查了下并不能加属性,不然就加个
[[maybe_unused]]
了。.clang-tidy 加个 -misc-unused-alias-decls
解决P3149R10: async_scope
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3149r10.html
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3149r10.html
使用
原因是
string_view
时要小心悬垂(原因是
std::string
有 sso,从而移动的时候会导致 std::string_view
失效,从而不能用 std::vector
而应该用 std::deque