File tree 20 files changed +62
-26
lines changed
20 files changed +62
-26
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,7 @@ add_subdirectory(chapter-2)
7
7
add_subdirectory (chapter-7)
8
8
add_subdirectory (chapter-8)
9
9
add_subdirectory (chapter-9)
10
- # add_subdirectory(chapter-10)
10
+ add_subdirectory (chapter-10)
11
+ add_subdirectory (chapter-11)
12
+ add_subdirectory (chapter-12)
13
+ add_subdirectory (chapter-13)
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ export namespace HR
40
40
m_FirstUnitOfName = c;
41
41
}
42
42
43
- virtual [[nodiscard]] bool operator ==(const Person &rhs) const
43
+ [[nodiscard]] virtual bool operator ==(const Person &rhs) const
44
44
{
45
45
return (m_FirstUnitOfName == rhs.getFirstUnitOfName () && m_FirstName == rhs.getFirstName () && m_LastName == rhs.getLastName ());
46
46
};
47
- virtual [[nodiscard]] std::strong_ordering operator <=>(const Person &rhs) const
47
+ [[nodiscard]] virtual std::strong_ordering operator <=>(const Person &rhs) const
48
48
{
49
49
if (m_FirstUnitOfName != rhs.getFirstUnitOfName ())
50
50
{
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ export namespace HR
40
40
m_FirstUnitOfName = c;
41
41
}
42
42
43
- virtual [[nodiscard]] bool operator ==(const Person &rhs) const
43
+ [[nodiscard]] virtual bool operator ==(const Person &rhs) const
44
44
{
45
45
return (getFirstUnitOfName () == rhs.getFirstUnitOfName () && getFirstName () == rhs.getFirstName () && getLastName () == rhs.getLastName ());
46
46
};
47
- virtual [[nodiscard]] std::strong_ordering operator <=>(const Person &rhs) const
47
+ [[nodiscard]] virtual std::strong_ordering operator <=>(const Person &rhs) const
48
48
{
49
49
if (getFirstUnitOfName () != rhs.getFirstUnitOfName ())
50
50
{
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ export namespace HR
40
40
m_FirstUnitOfName = c;
41
41
}
42
42
43
- virtual [[nodiscard]] bool operator ==(const Person &rhs) const
43
+ [[nodiscard]] virtual bool operator ==(const Person &rhs) const
44
44
{
45
45
return (getFirstUnitOfName () == rhs.getFirstUnitOfName () && getFirstName () == rhs.getFirstName () && getLastName () == rhs.getLastName ());
46
46
};
47
- virtual [[nodiscard]] std::strong_ordering operator <=>(const Person &rhs) const
47
+ [[nodiscard]] virtual std::strong_ordering operator <=>(const Person &rhs) const
48
48
{
49
49
if (getFirstUnitOfName () != rhs.getFirstUnitOfName ())
50
50
{
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ export namespace HR
40
40
m_FirstUnitOfName = c;
41
41
}
42
42
43
- virtual [[nodiscard]] bool operator ==(const Person &rhs) const
43
+ [[nodiscard]] virtual bool operator ==(const Person &rhs) const
44
44
{
45
45
return (getFirstUnitOfName () == rhs.getFirstUnitOfName () && getFirstName () == rhs.getFirstName () && getLastName () == rhs.getLastName ());
46
46
};
47
- virtual [[nodiscard]] std::strong_ordering operator <=>(const Person &rhs) const
47
+ [[nodiscard]] virtual std::strong_ordering operator <=>(const Person &rhs) const
48
48
{
49
49
if (getFirstUnitOfName () != rhs.getFirstUnitOfName ())
50
50
{
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ include("../../module.cmake")
7
7
add_executable (11-1)
8
8
target_sources (11-1
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
main.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
Simulator.cppm
13
14
)
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ include("../../module.cmake")
7
7
add_executable (11-2)
8
8
target_sources (11-2
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
main.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
Simulator.cppm
13
- PRIVATE
14
+ PUBLIC
14
15
Simulator.cpp
15
16
)
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ include("../../module.cmake")
7
7
add_executable (11-3)
8
8
target_sources (11-3
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
main.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
Simulator.cppm
13
- PRIVATE
14
14
Simulator.bike.cppm
15
15
Simulator.car.cppm
16
16
)
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ include("../../module.cmake")
7
7
add_executable (11-4)
8
8
target_sources (11-4
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
main.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
Simulator.cppm
13
- PRIVATE
14
14
Simulator.bike.cppm
15
15
Simulator.car.cppm
16
16
Simulator.internals.cppm
Original file line number Diff line number Diff line change
1
+ CMAKE_MINIMUM_REQUIRED (VERSION 3.25)
2
+
3
+ project (chapter-11)
4
+
5
+ add_subdirectory (11-1)
6
+ add_subdirectory (11-2)
7
+ add_subdirectory (11-3)
8
+ add_subdirectory (11-4)
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ include("../../module.cmake")
7
7
add_executable (12-1)
8
8
target_sources (12-1
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
main.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
KeyValuePair.cppm
13
14
)
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ include("../../module.cmake")
7
7
add_executable (12-2)
8
8
target_sources (12-2
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
main.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
KeyValuePair.cppm
13
- PRIVATE
14
14
KeyValuePair.main.cppm
15
15
KeyValuePair.string .cppm
16
16
)
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ include("../../module.cmake")
7
7
add_executable (12-3)
8
8
target_sources (12-3
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
main.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
KeyValuePair.cppm
13
14
)
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ include("../../module.cmake")
7
7
add_executable (12-4)
8
8
target_sources (12-4
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
main.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
concat.cppm
13
14
)
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ include("../../module.cmake")
7
7
add_executable (12-5)
8
8
target_sources (12-5
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
main.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
concat.cppm
13
14
)
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ include("../../module.cmake")
7
7
add_executable (12-6)
8
8
target_sources (12-6
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
FindTemplate.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
SpreadsheetCell.cppm
13
- PRIVATE
14
+ PUBLIC
14
15
SpreadsheetCell.cpp
15
16
)
Original file line number Diff line number Diff line change
1
+ CMAKE_MINIMUM_REQUIRED (VERSION 3.25)
2
+
3
+ project (chapter-12)
4
+
5
+ add_subdirectory (12-1)
6
+ add_subdirectory (12-2)
7
+ add_subdirectory (12-3)
8
+ add_subdirectory (12-4)
9
+ add_subdirectory (12-5)
10
+ # add_subdirectory(12-6) from_char not implemented in libc++
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ include("../../module.cmake")
7
7
add_executable (13-1)
8
8
target_sources (13-1
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
main.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
Person.cppm
13
14
)
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ include("../../module.cmake")
7
7
add_executable (13-2)
8
8
target_sources (13-2
9
9
PUBLIC
10
- FILE_SET all_my_modules TYPE CXX_MODULES FILES
11
10
main.cpp
11
+ PUBLIC
12
+ FILE_SET all_my_modules TYPE CXX_MODULES FILES
12
13
Person.cppm
13
14
)
Original file line number Diff line number Diff line change
1
+ CMAKE_MINIMUM_REQUIRED (VERSION 3.25)
2
+
3
+ project (chapter-13)
4
+
5
+ add_subdirectory (13-1)
6
+ add_subdirectory (13-2)
You can’t perform that action at this time.
0 commit comments