Skip to content

Commit

Permalink
changed ex7_31.cpp to ex7_31.h
Browse files Browse the repository at this point in the history
1. remove redundancy of include.
2. remove `class X`
  • Loading branch information
pezy committed Nov 17, 2014
1 parent 07e23b5 commit d2f37dc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 37 deletions.
37 changes: 0 additions & 37 deletions ch07/ex7_31.cpp

This file was deleted.

22 changes: 22 additions & 0 deletions ch07/ex7_31.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// ex7_31.h
// Exercise 7.31
//
// Created by pezy on 11/17/14.
// Copyright (c) 2014 pezy. All rights reserved.
//

#ifndef Test_ex7_31_h
#define Test_ex7_31_h

class Y;

class X {
Y* y = nullptr;
};

class Y {
X* x = nullptr;
};

#endif

0 comments on commit d2f37dc

Please sign in to comment.