diff options
author | ipkn <ipknhama@gmail.com> | 2014-05-02 01:17:49 -0400 |
---|---|---|
committer | ipkn <ipknhama@gmail.com> | 2014-05-02 01:17:49 -0400 |
commit | 81bd1e1fb6cb2a74c4e372410fb419cfc94991e0 (patch) | |
tree | fecebb2f7887cf73f6e6aa1d5ce9ee1d7d3cc57c /routing.h | |
parent | f8893eb138eae88f35ba752221a02b318d275364 (diff) | |
download | crow-81bd1e1fb6cb2a74c4e372410fb419cfc94991e0.tar.gz crow-81bd1e1fb6cb2a74c4e372410fb419cfc94991e0.zip |
caching datetime string for Date header
Diffstat (limited to 'routing.h')
-rw-r--r-- | routing.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -27,7 +27,6 @@ namespace crow protected: - friend class Router; }; template <typename ... Args> @@ -219,6 +218,7 @@ namespace crow static const int pos = Pos; }; + friend class Router; }; class Trie @@ -323,7 +323,7 @@ public: if (ret.first && (!found || found > ret.first)) { found = ret.first; - match_params = ret.second; + match_params = std::move(ret.second); } }; @@ -585,7 +585,7 @@ public: if (rule_index >= rules_.size()) throw std::runtime_error("Trie internal structure corrupted!"); #ifdef CROW_ENABLE_LOGGING - std::cerr << req.url << ' ' << rules_[rule_index]->rule_ << std::endl; + std::cerr << req.url << ' ' << ((TaggedRule<>*)rules_[rule_index].get())->rule_ << std::endl; #endif return rules_[rule_index]->handle(req, found.second); } |