Mark some single-argument constructors explicit

This commit is contained in:
Joe Loser
2018-05-20 22:23:44 -04:00
committed by Mike Ellery
parent 31e511afcf
commit f658656b82
11 changed files with 20 additions and 20 deletions

View File

@@ -36,7 +36,7 @@ private:
class CerrRedirect
{
public:
CerrRedirect (std::stringstream& sStream)
explicit CerrRedirect (std::stringstream& sStream)
: old_ (std::cerr.rdbuf (sStream.rdbuf()))
{ }
@@ -53,7 +53,7 @@ private:
class ThreadNameGuard
{
public:
ThreadNameGuard (std::string const& newName)
explicit ThreadNameGuard (std::string const& newName)
: old_ (beast::getCurrentThreadName ())
{
beast::setCurrentThreadName (newName);