Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <list>
- using namespace std;
- class Test{
- public:
- Test(){
- cout << "Angelegt\n";
- }
- Test( const Test & T ){
- cout << "Kopiert\n";
- }
- };
- int main()
- {
- list<Test> mylist;
- Test T = mylist.front();
- cout << "mylist.front()" << endl;
- cout.flush();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement