diff options
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()); +} |