docopt / docopt.cpp

C++11 port of docopt
Boost Software License 1.0
1.04k stars 146 forks source link

Crash in 0.6.3 #138

Closed w3sip closed 3 years ago

w3sip commented 3 years ago

The crash happens both in 0.6.2 and the latest 0.6.3. The attached package can be used to illustrate it. Seems to only happen on Windows. Removing leading spaces to the options seems to work as a temporary workaround.

docopt.zip

jaredgrubb commented 3 years ago

Are you using Boost regex engine? You're probably hitting a known bug in the MSVC regex implementation (#49)

stanislavlyalin commented 3 years ago

Changing std::regex to boost::regex solves this issue on Windows.

jaredgrubb commented 3 years ago

Ok, thanks for confirming. That would make this a duplicate of #49 then.