Skip to content

Commit

Permalink
Fix includes
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed Sep 3, 2019
1 parent 213fc52 commit 970c92e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/oatpp/web/server/api/Endpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ std::shared_ptr<Endpoint> Endpoint::createShared(const std::shared_ptr<RequestHa
return std::make_shared<Endpoint>(handler, infoBuilder);
}

std::shared_ptr<Endpoint::Info> Endpoint::info() const {
std::shared_ptr<Endpoint::Info> Endpoint::info() {
if (m_info == nullptr) {
m_info = m_infoBuilder();
}
Expand Down
5 changes: 3 additions & 2 deletions src/oatpp/web/server/api/Endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include <list>
#include <unordered_map>
#include <functional>

namespace oatpp { namespace web { namespace server { namespace api {

Expand Down Expand Up @@ -169,10 +170,10 @@ class Endpoint : public oatpp::base::Countable {

const std::shared_ptr<RequestHandler> handler;

std::shared_ptr<Info> info() const;
std::shared_ptr<Info> info();

private:
mutable std::shared_ptr<Info> m_info;
std::shared_ptr<Info> m_info;
const std::function<const std::shared_ptr<Endpoint::Info>&()> m_infoBuilder;

};
Expand Down

0 comments on commit 970c92e

Please sign in to comment.