Changeset 421 for library/tests
- Timestamp:
- 07/20/09 12:17:31 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/test_shared_ptr.cpp
r419 r421 24 24 bdm::shared_ptr<Foo> zero; 25 25 CHECK_EQUAL(0l, zero.use_count()); 26 bdm::shared_ptr<Foo> z2(zero); 27 CHECK_EQUAL(0l, z2.use_count()); 26 28 27 29 bdm::shared_ptr<Foo> one(new Foo(1)); … … 32 34 v.push_back(bdm::shared_ptr<Foo>(new Foo(2))); 33 35 CHECK_EQUAL(static_cast<TFooVector::size_type>(3), v.size()); 36 37 CHECK(v[0] == v[1]); 38 CHECK(v[1] != v[2]); 34 39 35 40 Foo c(*(v[0]));