File tree 4 files changed +34
-34
lines changed
4 files changed +34
-34
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set (awesome-c-c++_VERSION_MINOR 1)
6
6
set (CMAKE_CXX_FLAG "-g -Wall" )
7
7
8
8
set (SOURCES
9
- m_atoi_method.cpp
9
+ src/ m_atoi_method.cpp
10
10
)
11
11
12
12
add_executable (awesome ${SOURCES} )
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
- #include < iostream>
2
- using namespace std ;
3
-
4
- template <typename T> class A
5
- {
6
- friend T;
7
- private:
8
- A () {}
9
- ~A () {}
10
- };
11
-
12
- class B : virtual public A<B>
13
- {
14
- public:
15
- B () {
16
- cout << " B constructor" << endl;
17
- }
18
- ~B () {}
19
- };
20
-
21
- // class C : virtual public B
22
- // {
23
- // public:
24
- // C() {}
25
- // ~C() {}
26
- // };
27
-
28
- int main ( void )
29
- {
30
- B b;
31
- // C c;
32
- return 0 ;
33
- }
1
+ #include < iostream>
2
+ using namespace std ;
3
+
4
+ template <typename T> class A
5
+ {
6
+ friend T;
7
+ private:
8
+ A () {}
9
+ ~A () {}
10
+ };
11
+
12
+ class B : virtual public A<B>
13
+ {
14
+ public:
15
+ B () {
16
+ cout << " B constructor" << endl;
17
+ }
18
+ ~B () {}
19
+ };
20
+
21
+ // class C : virtual public B
22
+ // {
23
+ // public:
24
+ // C() {}
25
+ // ~C() {}
26
+ // };
27
+
28
+ int main ( void )
29
+ {
30
+ B b;
31
+ // C c;
32
+ return 0 ;
33
+ }
You can’t perform that action at this time.
0 commit comments