Spar

Results 88 comments of Spar

Continues discussion in https://github.com/openresty/lua-cjson/issues/96

Hi. No, Lua pattern explanation is correct. The sign `^` negates the search. For the string `adadas{{hfhfhdf` pattern `[^{]*` will match anything but not `{`. And the answer is correct,...

@Perl99 > LuaJIT is written in C, it does not throw C++ exceptions on its own It does. You can catch LuaJIT errors with `catch (...)`. It can also rethrow...

Thinking leak sanitizer would not understand library logic and trigger a false positive is a bold statement. Same leak on valgrind: ``` ==504172== LEAK SUMMARY: ==504172== definitely lost: 79 bytes...

And I don't know what to say about `ThreadSanitizer: reported 10 warnings`

Чтобы понимать, имеется в виду: ```cpp std::swap(*it, vec.back()); vec.pop_back(); ```

Не заменит, я только про первую строчку. Копирование не понравилось. ```cpp *it = std::move(vec.back()); vec.pop_back(); ```