Compilation error with c++17 (GCC) or higher.
未关闭
- 主要语言
- C++
- 星标
- 20
- 派生
- 42
- PR 合并指标
- 30 天内没有已合并 PR
描述
template
void do_something_to_all(_Can& __can, const _Predicate& __pred) {for (BOOST_AUTO(iter, __can.begin()); iter != __can.end(); ++iter) __pred(*iter);}
template\
size_t get_size_in_byte(const _Can& __can)
{
size_t size_in_byte = 0;
do_something_to_all(__can, size_in_byte += boost::lambda::bind(&_Can::value_type::size, boost::lambda::_1));
return size_in_byte;
}
std::list\ can;
can.emplace_back("123");
can.emplace_back("456");
printf("%zu\n", get_size_in_byte(can));
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。