diff options
author | ipknHama <ipknhama@gmail.com> | 2014-04-16 02:57:18 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-04-16 02:57:18 +0900 |
commit | d0141b26136ddccbb2185b17b2b3822cf13d422a (patch) | |
tree | 5d560e9395b92e9137848b02db6f86874bd3f2c3 /common.h | |
parent | 7933427691ec30afd63cde8927b9500237d5b2cb (diff) | |
download | crow-d0141b26136ddccbb2185b17b2b3822cf13d422a.tar.gz crow-d0141b26136ddccbb2185b17b2b3822cf13d422a.zip |
fix routing bugs, some optimization on trie
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -22,6 +22,23 @@ namespace flask std::vector<double> double_params; std::vector<std::string> string_params; + void debug_print() const + { + std::cerr << "routing_params" << std::endl; + for(auto i:int_params) + std::cerr<<i <<", " ; + std::cerr<<std::endl; + for(auto i:uint_params) + std::cerr<<i <<", " ; + std::cerr<<std::endl; + for(auto i:double_params) + std::cerr<<i <<", " ; + std::cerr<<std::endl; + for(auto& i:string_params) + std::cerr<<i <<", " ; + std::cerr<<std::endl; + } + template <typename T> T get(unsigned) const; |