aboutsummaryrefslogtreecommitdiff
path: root/src/tests/sptr.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-04-09 22:17:25 +0000
committerMike Buland <eichlan@xagasoft.com>2007-04-09 22:17:25 +0000
commit015b1ee8079175cace17917d375d24175311b2f8 (patch)
tree14ad9a8863957b28d18e7a8e6ba3611f70aee5bf /src/tests/sptr.cpp
parent92312a5ab76a934f3e79896722d8ec46deffb233 (diff)
downloadlibbu++-015b1ee8079175cace17917d375d24175311b2f8.tar.gz
libbu++-015b1ee8079175cace17917d375d24175311b2f8.tar.bz2
libbu++-015b1ee8079175cace17917d375d24175311b2f8.tar.xz
libbu++-015b1ee8079175cace17917d375d24175311b2f8.zip
The SPtr is castable now. just say SPtrCast<TypeToCastTo>( ASPtr );
Diffstat (limited to '')
-rw-r--r--src/tests/sptr.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/sptr.cpp b/src/tests/sptr.cpp
index bc00f78..252463b 100644
--- a/src/tests/sptr.cpp
+++ b/src/tests/sptr.cpp
@@ -65,11 +65,12 @@ int main()
65 beAnnoying( pt3 ); 65 beAnnoying( pt3 );
66 66
67 { 67 {
68 SPtr<Annoy2> pt4( dynamic_cast<SPtr<Annoy2> >(pt3) ); 68 SPtr<Annoy2> pt4( SPtrCast<Annoy2>( pt3 ) );
69 printf("Count: %d\n", pt4.count() ); 69 printf("Count: %d\n", pt4.count() );
70 70
71 pt4.go2(); 71 pt4->go2();
72 } 72 }
73 printf("Count: %d\n", pt.count() );
73 } 74 }
74 printf("Count: %d\n", pt.count() ); 75 printf("Count: %d\n", pt.count() );
75 } 76 }