Victor
Victor
你好!我在编译LinqCpp时出错了,修改了好多,现在只剩最后一个问题了,`LinqCpp::where`的参数类型是`const F &f`,test中给的实参是lambda表达式,用g++编译,报的错误是lambda closure没有提供赋值操作,但这里并没有赋值啊,还请指教。 下面是详细的编译信息,行号可能有不同,因为我修复了其他的编译错误。 ```cpp In file included from /usr/include/boost/range/adaptors.hpp:15:0, from LinqCpp.hpp:9, from linq.cpp:7: /usr/include/boost/range/adaptor/adjacent_filtered.hpp: In instantiation of ‘void boost::range_detail::skip_iterator::move_to_next_valid() [with Iter = boost::filter_iterator; Pred = boost::range_detail::unique_not_equal_to; bool default_pass...
If proc id is in another process cmd line, grep may find it. ``` //返回某个进程的cpu使用率 func CpuUsedRateByProc(proc string) string { //return ExecOutput("ps axuwww|grep " + proc + "|grep -v grep|awk...
In frame_go112.go https://github.com/3d0c/gmf/blob/master/frame_go112.go#L210 Firstly allocate heap memory. If `avcodec_fill_audio_frame()` fail, the heap memory will leak: (BTW, I miss RAII in C++)