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:
parent
e8468b8291
commit
c249b0f93b
2 changed files with 25 additions and 0 deletions
|
@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue