Skip to content

Commit faf507d

Browse files
author
Adam Horvath
committed
Added useful links
1 parent 0a42416 commit faf507d

File tree

3 files changed

+41
-7
lines changed

3 files changed

+41
-7
lines changed

TheQuote.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
http://www.stroustrup.com/C++11FAQ.html#think
2727

2828

29-
Browse this code: https://github.com/megaadam/cpp11playground
30-
Or clone it: git clone git://github.com/megaadam/cpp11playground
29+
https://github.com/megaadam/cpp11playground
30+
git clone git://github.com/megaadam/cpp11playground
3131

32-
Useful links: https://en.wikipedia.org/wiki/C%2B%2B11
33-
http://en.cppreference.com/w/
34-
https://isocpp.org/
32+
https://en.wikipedia.org/wiki/C%2B%2B11
33+
http://en.cppreference.com/w/
34+
https://isocpp.org/
3535

3636

3737

src/NonCopyable.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
// New way way to prevent assignment and copy-construction
3-
struct NonCopyable {
3+
class NonCopyable {
44
NonCopyable() = default;
55
NonCopyable(const NonCopyable&) = delete;
66
NonCopyable& operator=(const NonCopyable&) = delete;

src/TestItAgainSam.cpp

+35-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void TestItAgainSam::Run() const
3939
//TestLegacyEnums();
4040
//TestEnums();
4141

42-
//TestAsync();
42+
//TestAsync();
4343

4444
//TestMove();
4545
//std::this_thread::sleep_for(std::chrono::seconds(30));
@@ -51,6 +51,7 @@ void TestItAgainSam::TestHeaderInit() const
5151
std::cout << std::endl;
5252
std::cout << __PRETTY_FUNCTION__ << std::endl;
5353
std::cout << "========================================" << std::endl;
54+
5455
{
5556
HeaderInit hi(1000, 2000, 3000);
5657
hi.PrintMembers();
@@ -64,13 +65,21 @@ void TestItAgainSam::TestHeaderInit() const
6465

6566
void TestItAgainSam::TestLegacyContainers() const
6667
{
68+
std::cout << std::endl;
69+
std::cout << __PRETTY_FUNCTION__ << std::endl;
70+
std::cout << "========================================" << std::endl;
71+
6772
LegacyContainers cont;
6873
cont.ListCities();
6974
cont.ListCodes();
7075
}
7176

7277
void TestItAgainSam::TestContainers() const
7378
{
79+
std::cout << std::endl;
80+
std::cout << __PRETTY_FUNCTION__ << std::endl;
81+
std::cout << "========================================" << std::endl;
82+
7483
Containers cont;
7584
cont.ListCities();
7685
cont.ListCodes();
@@ -79,6 +88,10 @@ void TestItAgainSam::TestContainers() const
7988

8089
void TestItAgainSam::TestLegacy42() const
8190
{
91+
std::cout << std::endl;
92+
std::cout << __PRETTY_FUNCTION__ << std::endl;
93+
std::cout << "========================================" << std::endl;
94+
8295
std::cout << std::endl;
8396

8497
std::vector<LegacyFortyTwo*> lftVec;
@@ -95,6 +108,10 @@ void TestItAgainSam::TestLegacy42() const
95108

96109
void TestItAgainSam::Test42() const
97110
{
111+
std::cout << std::endl;
112+
std::cout << __PRETTY_FUNCTION__ << std::endl;
113+
std::cout << "========================================" << std::endl;
114+
98115
std::cout << std::endl;
99116

100117
std::vector<FortyTwo> ftVec = {
@@ -111,6 +128,10 @@ void TestItAgainSam::Test42() const
111128

112129
void TestItAgainSam::TestLegacyEnums() const
113130
{
131+
std::cout << std::endl;
132+
std::cout << __PRETTY_FUNCTION__ << std::endl;
133+
std::cout << "========================================" << std::endl;
134+
114135
LegacyEnums le;
115136
// Why does this fail ?
116137
le.WineTesting(RED);
@@ -123,12 +144,20 @@ void TestItAgainSam::TestLegacyEnums() const
123144

124145
void TestItAgainSam::TestEnums() const
125146
{
147+
std::cout << std::endl;
148+
std::cout << __PRETTY_FUNCTION__ << std::endl;
149+
std::cout << "========================================" << std::endl;
150+
126151
Enums e;
127152
e.WineTesting(Enums::Wine::RED);
128153
}
129154

130155
void TestItAgainSam::TestAsync() const
131156
{
157+
std::cout << std::endl;
158+
std::cout << __PRETTY_FUNCTION__ << std::endl;
159+
std::cout << "========================================" << std::endl;
160+
132161
Async a;
133162
a.GetForecasts();
134163
}
@@ -140,6 +169,11 @@ void TestItAgainSam::TestMove() const
140169
//
141170
// mb2 = mb1;
142171

172+
std::cout << std::endl;
173+
std::cout << __PRETTY_FUNCTION__ << std::endl;
174+
std::cout << "========================================" << std::endl;
175+
176+
143177
std::vector<MemoryBlock> vec;
144178

145179
vec.push_back(MemoryBlock(2000));

0 commit comments

Comments
 (0)