use_count() postconditions added; enable_..._test.cpp renamed.

[SVN r16896]
This commit is contained in:
Peter Dimov
2003-01-13 18:32:16 +00:00
parent 78a47d7619
commit c5bae28eeb
7 changed files with 148 additions and 62 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
//
// detail/shared_count.hpp
//
// Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
// Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd.
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
@@ -386,7 +386,7 @@ public:
long use_count() const // nothrow
{
return pi_ != 0? pi_->use_count(): 42; // '42' is an example of 'unspecified'
return pi_ != 0? pi_->use_count(): 0;
}
bool unique() const // nothrow