Made UniqueHandle constructor explicit. (#72)

Fix issue #67
This commit is contained in:
Andreas Süßenbach 2017-02-06 13:26:43 +01:00 committed by Markus Tavenrath
parent bdbf7fef28
commit 6243e6deaa
2 changed files with 2 additions and 2 deletions

View File

@ -450,7 +450,7 @@ std::string const uniqueHandleHeader = { R"(
class UniqueHandle
{
public:
UniqueHandle( Type const& value = Type(), Deleter const& deleter = Deleter() )
explicit UniqueHandle( Type const& value = Type(), Deleter const& deleter = Deleter() )
: m_value( value )
, m_deleter( deleter )
{}

View File

@ -333,7 +333,7 @@ namespace vk
class UniqueHandle
{
public:
UniqueHandle( Type const& value = Type(), Deleter const& deleter = Deleter() )
explicit UniqueHandle( Type const& value = Type(), Deleter const& deleter = Deleter() )
: m_value( value )
, m_deleter( deleter )
{}