Commit 4e33c220 authored by hyperxor's avatar hyperxor

Fix options variable capture in lambda

parent 42afa1ce
......@@ -206,7 +206,7 @@ namespace Pistache
void Endpoint::init(const Endpoint::Options& options)
{
listener.init(options.threads_, options.flags_, options.threadsName_);
listener.setTransportFactory([&] {
listener.setTransportFactory([this, options] {
if (!handler_)
throw std::runtime_error("Must call setHandler()");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment