Skip to content

败犬日报 2025-08-13

1. GCC 不能在类里面特化模板

cpp
struct A {
    template <bool tag>
    void bar();

    template <>
    void bar<true>() {}  // error: explicit specialization in non-namespace scope 'struct A'

};

这是 GCC 未实现的 feature。

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85282

2. 高频相关,莫队交易赛的文章

https://zhuanlan.zhihu.com/p/470766162

太超模了。