Skip to content

Commit

Permalink
bumping more deps + minify example to avoid compliation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Nov 11, 2020
1 parent a264256 commit 3ed8a19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
5 changes: 4 additions & 1 deletion recipes/restinio/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def requirements(self):
else:
self.requires("asio/1.16.1")
else:
self.requires("boost/1.73.0")
if tools.Version(self.version) >= "0.6.9":
self.requires("boost/1.74.0")
else:
self.requires("boost/1.73.0")

if self.options.with_openssl:
self.requires("openssl/1.1.1h")
Expand Down
13 changes: 1 addition & 12 deletions recipes/restinio/all/test_package/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

using namespace restinio;

template<typename T>
std::ostream & operator<<(std::ostream & to, const optional_t<T> & v) {
if(v) to << v.value();
return to;
}

int main() {
// Create express router for our service.
auto router = std::make_unique<router::express_router_t<>>();
Expand All @@ -17,12 +11,7 @@ int main() {
[](auto req, auto params) {
const auto qp = parse_query(req->header().query());
return req->create_response()
.set_body(
fmt::format("meter_id={} (year={}/mon={}/day={})",
cast_to<int>(params["meter_id"]),
opt_value<int>(qp, "year"),
opt_value<int>(qp, "mon"),
opt_value<int>(qp, "day")))
.set_body(fmt::format("meter_id={}", cast_to<int>(params["meter_id"])))
.done();
});

Expand Down

0 comments on commit 3ed8a19

Please sign in to comment.