summaryrefslogtreecommitdiff
path: root/misc/hole.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'misc/hole.cpp')
-rw-r--r--misc/hole.cpp41
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;
+
+}