diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/hole.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/misc/hole.cpp b/misc/hole.cpp new file mode 100644 index 0000000..1f38d83 --- /dev/null +++ b/misc/hole.cpp @@ -0,0 +1,41 @@ + +#include <iostream> +#include <vector> + +namespace How { + + namespace Deep { + + namespace The { + + template <typename t0, typename t1> + class Rabbit { + + public: + + template<typename st0, typename st1, typename st2> + static t1 HoleIs(std::vector<bool> a) + { + return 0; + } + + }; + + } + + } + +} + +int main() +{ + How::Deep::The::Rabbit<char [2], double *> r; + + typedef int (* func) (double); + + std::vector<bool> array(10); + + std::cout << "Hello" << std::endl; + std::cout << r.HoleIs<int, func, double>(array) << std::endl; + +} |