From 071c95ec90a46320079b4c281237f6a2a015a071 Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Mon, 22 May 2017 14:46:55 -0400 Subject: [PATCH] missing explicit in merge from RC_1_1 --- include/libtorrent/debug.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libtorrent/debug.hpp b/include/libtorrent/debug.hpp index 8547bc86f..e94f5939e 100644 --- a/include/libtorrent/debug.hpp +++ b/include/libtorrent/debug.hpp @@ -213,7 +213,7 @@ namespace libtorrent { struct increment_guard { int& m_cnt; - increment_guard(int& c) : m_cnt(c) { TORRENT_ASSERT(m_cnt >= 0); ++m_cnt; } + explicit increment_guard(int& c) : m_cnt(c) { TORRENT_ASSERT(m_cnt >= 0); ++m_cnt; } ~increment_guard() { --m_cnt; TORRENT_ASSERT(m_cnt >= 0); } private: increment_guard(increment_guard const&);