add ctor with std::pair argument

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@705 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-10-11 08:51:40 +00:00
parent e8468b8291
commit c249b0f93b
2 changed files with 25 additions and 0 deletions

View file

@ -124,6 +124,16 @@ int main ()
Thread::JoinThreads(threads);
Thread::DeleteThreads(threads);
// test pair ctor
volatile A a;
Loki::Mutex m;
UserLockingPtr::Pair pair(&a,&m);
UserLockingPtr l( pair );
ConstUserLockingPtr::Pair cpair(&a,&m);
ConstUserLockingPtr cl( cpair );
}