aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2014-04-16 02:57:18 +0900
committeripknHama <ipknhama@gmail.com>2014-04-16 02:57:18 +0900
commitd0141b26136ddccbb2185b17b2b3822cf13d422a (patch)
tree5d560e9395b92e9137848b02db6f86874bd3f2c3 /common.h
parent7933427691ec30afd63cde8927b9500237d5b2cb (diff)
downloadcrow-d0141b26136ddccbb2185b17b2b3822cf13d422a.tar.gz
crow-d0141b26136ddccbb2185b17b2b3822cf13d422a.zip
fix routing bugs, some optimization on trie
Diffstat (limited to 'common.h')
-rw-r--r--common.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/common.h b/common.h
index ff63e9f..c028ee4 100644
--- a/common.h
+++ b/common.h
@@ -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;