Added explicit qualifier to constructor.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1020 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
rich_sposato 2009-09-26 20:28:24 +00:00
parent c1f17ce2f0
commit 2d6266ba0b

View file

@ -60,7 +60,7 @@ namespace Loki
/** Constructor locks mutex associated with an object. /** Constructor locks mutex associated with an object.
@param lockpair a std::pair of pointers to the object and the mutex @param lockpair a std::pair of pointers to the object and the mutex
*/ */
LockingPtr( Pair lockpair ) explicit LockingPtr( Pair lockpair )
: pObject_( const_cast< SharedObject * >( lockpair.first ) ), : pObject_( const_cast< SharedObject * >( lockpair.first ) ),
pMutex_( lockpair.second ) pMutex_( lockpair.second )
{ {