chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.97k stars 1.22k forks source link

Compilation fails with -DASIO_NO_DYNAMIC_BUFFER_V1 if boost::regex is available #1504

Open DinoMe opened 4 months ago

DinoMe commented 4 months ago

Compilation fails at https://github.com/chriskohlhoff/asio/blob/4bcd6d5f6a6cf09d987832b9ef3a31136c6b7443/asio/include/asio/impl/read_until.hpp#L685

as details::regex_match_flags is defined at https://github.com/chriskohlhoff/asio/blob/4bcd6d5f6a6cf09d987832b9ef3a31136c6b7443/asio/include/asio/impl/read_until.hpp#L236

This is however part of the larger https://github.com/chriskohlhoff/asio/blob/4bcd6d5f6a6cf09d987832b9ef3a31136c6b7443/asio/include/asio/impl/read_until.hpp#L73

scope.

So, the compile flag ASIO_NO_DYNAMIC_BUFFER_V1 prevents the definition of regex_match_flags which is also used for v2 buffers in combination with boost::regex.

I hope this makes sense.

Thanks, Dino