From 90d74348477920c7a4f213bc28257da37058f72c Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 3 Apr 2019 11:16:14 -0700 Subject: [PATCH] decorator ctor is explicit --- CHANGELOG.md | 6 ++++++ include/boost/beast/websocket/stream_base.hpp | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 831ae945..7440742d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +Version 246: + +* decorator ctor is explicit + +-------------------------------------------------------------------------------- + Version 245: * decorator constructor is constrained diff --git a/include/boost/beast/websocket/stream_base.hpp b/include/boost/beast/websocket/stream_base.hpp index 47d98d3d..a214553f 100644 --- a/include/boost/beast/websocket/stream_base.hpp +++ b/include/boost/beast/websocket/stream_base.hpp @@ -73,6 +73,7 @@ struct stream_base Decorator>::value>::type #endif > + explicit decorator(Decorator&& f) : d_(std::forward(f)) {