summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-07 10:52:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-07 10:52:48 (GMT)
commitd0a46c9aa30c13f2fffe3a35ce807894337ff009 (patch)
treeb697f4198fbc99b249a8c00e4c3aa8c559c0fbc4 /misc
parent909c7ef10ad000ec988e35a95c2bbc6b22ffe242 (diff)
Played with the Itanium demangling Python API.
Diffstat (limited to 'misc')
-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;
+
+}