草,又被 vector<bool> 坑了,lambda 返回类型没特殊标注 bool 结果返回了一个 bit reference,随着 vector 的生命周期一起爆炸了
ranges::transform 等 ranges 系列操作怎么不能配合 execution policy 食用呢???
(看这个更新频率,说明频道主最近在高强度编写现代 C++ 代码!
(看这个更新频率,说明频道主最近在高强度编写现代 C++ 代码!
今日也是希望 gcc 赶快有 deducing this 的一天,原因是写了:
Num operator+(const Num& rhs) const & { ... }
Num operator+(const Num& rhs) && { ... }
Num operator+(Num&& rhs) const & { ... }
Num operator+(Num&& rhs) && { ... }