Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename T> struct Tid { typedef T type; };
- template <unsigned I>
- typename enable_if_c<(I==0),double>::type
- qget()
- { return 0.0; }
- template <unsigned I>
- typename lazy_enable_if_c<(I!=0), Tid<decltype(qget<I-1>())>>::type
- qget()
- { return qget<I-1>(); }
Add Comment
Please, Sign In to add comment