summaryrefslogtreecommitdiffstats
path: root/ue5/verwendung.cpp
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-06-04 16:31:09 +0200
committermanuel <manuel@nc8430.lan>2009-06-04 16:31:09 +0200
commit2c0bf4d7935626ef299f1be3f992b1dfe4c0b19f (patch)
tree881b3ec20c67018ca2d693071960a462adf9cf52 /ue5/verwendung.cpp
parent6e3bff52c888c22d8a76c6ff741785f0463456e4 (diff)
downloadooprog-2c0bf4d7935626ef299f1be3f992b1dfe4c0b19f.tar.gz
ooprog-2c0bf4d7935626ef299f1be3f992b1dfe4c0b19f.tar.bz2
ooprog-2c0bf4d7935626ef299f1be3f992b1dfe4c0b19f.zip
shared_ptr
Diffstat (limited to 'ue5/verwendung.cpp')
-rw-r--r--ue5/verwendung.cpp5
1 files changed, 0 insertions, 5 deletions
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 @@
2#include <cassert> // for assert 2#include <cassert> // for assert
3#include <utility> // for std::move 3#include <utility> // for std::move
4#include <stdexcept> // for std::out_of_range 4#include <stdexcept> // for std::out_of_range
5#include <iostream> //TODO
6 5
7struct Person 6struct Person
8{ 7{
@@ -80,7 +79,6 @@ int main()
80 } catch (...) 79 } catch (...)
81 {} 80 {}
82 81
83
84 { 82 {
85 // derived1 is 0. 83 // derived1 is 0.
86 shared_ptr<Student> derived1; 84 shared_ptr<Student> derived1;
@@ -154,9 +152,6 @@ int main()
154 a1.swap(a2); 152 a1.swap(a2);
155 assert(a1[0] == 4); 153 assert(a1[0] == 4);
156 assert(a2[2] == 3); 154 assert(a2[2] == 3);
157
158 for(array<int,3>::iterator it = a2.begin(); it != a2.end(); ++it)
159 std::cout << (*it) << std::endl;
160#endif 155#endif
161 156
162#ifdef SOLVED_3 157#ifdef SOLVED_3