| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,7 +70,7 @@ if(MSVC) | |||
| 70 | 70 | endif() | |
| 71 | 71 | endif() | |
| 72 | 72 | else() | |
| 73 | - set(CMAKE_CXX_STANDARD 17) | ||
| 73 | + set(CMAKE_CXX_STANDARD 20) | ||
| 74 | 74 | endif() | |
| 75 | 75 | ||
| 76 | 76 | if(EXPRESSCPP_ENABLE_COVERAGE) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | + #include "expresscpp/console.hpp" | ||
| 1 | 2 | #include "expresscpp/expresscpp.hpp" | |
| 2 | 3 | ||
| 3 | 4 | using namespace expresscpp; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | + #include "expresscpp/console.hpp" | ||
| 1 | 2 | #include "expresscpp/date.hpp" | |
| 2 | 3 | #include "expresscpp/expresscpp.hpp" | |
| 3 | 4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | + #include "expresscpp/console.hpp" | ||
| 1 | 2 | #include "expresscpp/expresscpp.hpp" | |
| 2 | 3 | ||
| 3 | 4 | using namespace expresscpp; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,7 @@ | |||
| 3 | 3 | #include <memory> | |
| 4 | 4 | #include <vector> | |
| 5 | 5 | ||
| 6 | + #include "expresscpp/console.hpp" | ||
| 6 | 7 | #include "expresscpp/expresscpp.hpp" | |
| 7 | 8 | ||
| 8 | 9 | using namespace expresscpp; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,13 +7,17 @@ | |||
| 7 | 7 | ||
| 8 | 8 | #include "boost/uuid/uuid_generators.hpp" | |
| 9 | 9 | #include "boost/uuid/uuid_io.hpp" | |
| 10 | + | ||
| 11 | + #include "expresscpp/console.hpp" | ||
| 10 | 12 | #include "expresscpp/expresscpp.hpp" | |
| 11 | 13 | ||
| 12 | 14 | using namespace expresscpp; | |
| 13 | 15 | ||
| 14 | 16 | int main() { | |
| 15 | 17 | ExpressCpp expresscpp; | |
| 16 | 18 | ||
| 19 | + Console::setLogLevel(LogLevel::kDebug); | ||
| 20 | + | ||
| 17 | 21 | // get a folder to write to | |
| 18 | 22 | const auto uuid_ = boost::uuids::random_generator()(); | |
| 19 | 23 | const auto tmp_folder = std::filesystem::temp_directory_path(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | + #include "expresscpp/console.hpp" | ||
| 1 | 2 | #include "expresscpp/expresscpp.hpp" | |
| 2 | 3 | ||
| 3 | 4 | using namespace expresscpp; | |
@@ -16,7 +17,7 @@ int main() { | |||
| 16 | 17 | ||
| 17 | 18 | constexpr uint16_t port = 8081; | |
| 18 | 19 | ||
| 19 | - auto output = fmt::format( | ||
| 20 | + const auto output = fmt::format( | ||
| 20 | 21 | R"(you can try now: "curl http://localhost:{}/things/1234/datapoint/080fc7a2-9128-4491-bc9d-df05a34064cb")", | |
| 21 | 22 | port); | |
| 22 | 23 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ namespace expresscpp { | |||
| 9 | 9 | ||
| 10 | 10 | class StaticFileProvider { | |
| 11 | 11 | public: | |
| 12 | - StaticFileProvider(std::filesystem::path path_to_root_folder); | ||
| 12 | + StaticFileProvider(const std::filesystem::path path_to_root_folder); | ||
| 13 | 13 | ||
| 14 | 14 | void UsePrefix(std::string_view path); | |
| 15 | 15 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,8 +5,6 @@ | |||
| 5 | 5 | #include <memory> | |
| 6 | 6 | #include <string> | |
| 7 | 7 | ||
| 8 | - #include "expresscpp/console.hpp" | ||
| 9 | - | ||
| 10 | 8 | namespace expresscpp { | |
| 11 | 9 | ||
| 12 | 10 | class NextRouter { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,6 @@ | |||
| 5 | 5 | #include <string_view> | |
| 6 | 6 | ||
| 7 | 7 | #include "boost/uuid/uuid.hpp" | |
| 8 | - #include "expresscpp/console.hpp" | ||
| 9 | 8 | #include "expresscpp/http_method.hpp" | |
| 10 | 9 | #include "expresscpp/types.hpp" | |
| 11 | 10 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments