shpilu/cloriSearch

关于term中value内存管理的问题

Closed this issue · 2 comments

g++ 5.2.0之后string不是cow的机制了,有自己的生命周期管理, 这里直接这么拷贝应该是有问题的.
https://github.com/shpilu/cloriSearch/blob/master/src/term.h#L68
https://github.com/shpilu/cloriSearch/blob/master/src/term.cc#L43