From 2c0bf4d7935626ef299f1be3f992b1dfe4c0b19f Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 4 Jun 2009 16:31:09 +0200 Subject: shared_ptr --- ue5/verwendung.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ue5/verwendung.cpp') diff --git a/ue5/verwendung.cpp b/ue5/verwendung.cpp index 8a20e6c..a0939cd 100644 --- a/ue5/verwendung.cpp +++ b/ue5/verwendung.cpp @@ -2,7 +2,6 @@ #include // for assert #include // for std::move #include // for std::out_of_range -#include //TODO struct Person { @@ -80,7 +79,6 @@ int main() } catch (...) {} - { // derived1 is 0. shared_ptr derived1; @@ -154,9 +152,6 @@ int main() a1.swap(a2); assert(a1[0] == 4); assert(a2[2] == 3); - - for(array::iterator it = a2.begin(); it != a2.end(); ++it) - std::cout << (*it) << std::endl; #endif #ifdef SOLVED_3 -- cgit v1.2.3