missing explicit in merge from RC_1_1

This commit is contained in:
Alden Torres 2017-05-22 14:46:55 -04:00 committed by Arvid Norberg
parent 680ca6ea2b
commit 071c95ec90
1 changed files with 1 additions and 1 deletions

View File

@ -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&);