diff options
author | ipknHama <ipknhama@gmail.com> | 2014-04-03 01:38:08 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-04-03 08:29:22 +0900 |
commit | 5e5d69688435ffe8fc148af73fe33b029d9f6110 (patch) | |
tree | 1a37f2927e6825482404307346661a7b1c34300d /unittest.cpp | |
parent | 4fdff79719af8d024f176bbdc03a57516e932602 (diff) | |
download | crow-5e5d69688435ffe8fc148af73fe33b029d9f6110.tar.gz crow-5e5d69688435ffe8fc148af73fe33b029d9f6110.zip |
preparing compile time url parsing
Diffstat (limited to 'unittest.cpp')
-rw-r--r-- | unittest.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/unittest.cpp b/unittest.cpp new file mode 100644 index 0000000..0cea0c7 --- /dev/null +++ b/unittest.cpp @@ -0,0 +1,27 @@ +#include "routing.h" +#include <functional> +#include "utility.h" + +using namespace flask; +using namespace flask::black_magic; + +template <int N> struct T{}; + +int main() +{ + try + { + throw T<is_int("1<int>22",0)>(); + } + catch(T<0>) + { + } + + try + { + throw T<is_int("1<int>22",1)>(); + } + catch(T<1>) + { + } +} |