Skip to content

Commit 4577ac6

Browse files
authored
fix: add sstream to hello-cpp (#100)
Missing <sstream> header in hello-cpp.
1 parent c50e0d1 commit 4577ac6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/hello-cpp/main.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <filesystem>
88
#include <fstream>
99
#include <iostream>
10+
#include <sstream>
1011

1112
namespace net = boost::asio; // from <boost/asio.hpp>
1213

@@ -24,8 +25,8 @@ class FilePersistence : public IPersistence {
2425
std::filesystem::create_directories(directory_);
2526
}
2627
void Set(std::string storage_namespace,
27-
std::string key,
28-
std::string data) noexcept override {
28+
std::string key,
29+
std::string data) noexcept override {
2930
try {
3031
std::ofstream file;
3132
file.open(MakePath(storage_namespace, key));
@@ -37,7 +38,7 @@ class FilePersistence : public IPersistence {
3738
}
3839

3940
void Remove(std::string storage_namespace,
40-
std::string key) noexcept override {
41+
std::string key) noexcept override {
4142
std::filesystem::remove(MakePath(storage_namespace, key));
4243
}
4344

0 commit comments

Comments
 (0)