activesys/libcstl — Issue #7: string_find_cstr方法触发断言
Author: activesys
Created: 2011-11-13 05:49:57+00:00
State: open

What steps will reproduce the problem?
如下代码会触发debug下的断言:
string_t *strTest = create_string();
string_init_cstr(strTest, "test");
size_t pos = string_find_cstr(strTest, "a", 0);

What is the expected output? What do you see instead?
应返回NPOS, 但程序触发basic_string_find_subcstr中1047行assert(false);

What version of the product are you using? On what operating system?
win32下测试libcstl 2.0.2.

Please provide any additional information below.
根据我的观察似乎那句assert(false);是多余的，直接去掉就能正常运行。。。
Delete comment Comment 1 by project member activesys.wb, Oct 12, 2011
bug已经修复，请使用issue27.patch补丁。