google / effcee

Effcee is a C++ library for stateful pattern matching of strings, inspired by LLVM's FileCheck
Apache License 2.0
93 stars 39 forks source link

Fix cursor_test.cc compilation on MSVC #61

Closed dneto0 closed 1 year ago

dneto0 commented 1 year ago

Use &text.front() instead of text.begin() to get a pointer to the first character in the view.

StringPiece::begin() yields an iterator, which we can't assume is a pointer-to-char.

Fixes: #60