Skip to content

Commit 55342a1

Browse files
committed
Make Message.hpp in ch 11, r 1 a real file
CMake won't follow symlink when installing. This commit makes the symlink an actual file to avoid being left with an invalid install tree
1 parent 35a0ba9 commit 55342a1

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

chapter-11/recipe-01/cxx-example/src/Message.hpp

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#pragma once
2+
3+
#include <iosfwd>
4+
#include <string>
5+
6+
#include "messageExport.h"
7+
8+
class message_EXPORT Message {
9+
public:
10+
Message(const std::string &m) : message_(m) {}
11+
12+
friend std::ostream &operator<<(std::ostream &os, Message &obj) {
13+
return obj.printObject(os);
14+
}
15+
16+
private:
17+
std::string message_;
18+
std::ostream &printObject(std::ostream &os);
19+
};
20+
21+
std::string getUUID();

0 commit comments

Comments
 (0)