dfleury2 / beauty

A Simple C++ Http server/client above Boost.Beast
MIT License
188 stars 23 forks source link

fix compilation with Boost 1.86 #39

Open chr-thien opened 2 days ago

chr-thien commented 2 days ago

There was an interface change in Boost 1.86. Now we do not have only an IteratorConnectHandler. Boost 1.86 adds a RangeConnectHandler. Compiler now selects another handler type for 'auto&&'. Hence we need to clarify expected handler type here.

Compilers tested: MSVC 16 (VS 2019) and MSVC 17 (VS2022)

Should also work on older revisions of Boost, although untested.