diff options
author | Jan Huwald <jh@sotun.de> | 2012-05-07 20:01:51 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2012-05-07 20:01:51 (GMT) |
commit | 420d2ef464d4a741028e132e662d5626806a41f5 (patch) | |
tree | 1aca6eb512e4ed0fb5f3c10c528cb998b6ffd695 /core/report_runtimeid.cpp |
Diffstat (limited to 'core/report_runtimeid.cpp')
-rw-r--r-- | core/report_runtimeid.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/report_runtimeid.cpp b/core/report_runtimeid.cpp new file mode 100644 index 0000000..0e06afd --- /dev/null +++ b/core/report_runtimeid.cpp @@ -0,0 +1,19 @@ +#include <iostream> + +#include <boost/mpl/for_each.hpp> + +#include "quant_types.hpp" + +using namespace std; + +struct printer { + template<typename T> + void operator() (T x) { + cout << T::name << ":\t" << (int) RuntimeID<T>::value << endl; + } +}; + +int main() +{ + boost::mpl::for_each<QuantorList>(printer()); +} |