diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-06-19 11:58:16 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-06-19 11:58:16 +0200 |
| commit | c66d1f5c0af70161f4ad4c4175f4280e95b55dfd (patch) | |
| tree | f8e5e5d6dc921054182e478be742ac30258c56c6 /fusion-utils/index_list.hpp | |
| download | openwar-c66d1f5c0af70161f4ad4c4175f4280e95b55dfd.tar.gz openwar-c66d1f5c0af70161f4ad4c4175f4280e95b55dfd.tar.bz2 openwar-c66d1f5c0af70161f4ad4c4175f4280e95b55dfd.zip | |
Initial commit of a mz-header parser.
Diffstat (limited to 'fusion-utils/index_list.hpp')
| -rw-r--r-- | fusion-utils/index_list.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fusion-utils/index_list.hpp b/fusion-utils/index_list.hpp new file mode 100644 index 0000000..f363dc3 --- /dev/null +++ b/fusion-utils/index_list.hpp @@ -0,0 +1,16 @@ +#pragma once + +template<int... Indices> +struct indices { + typedef indices<Indices..., sizeof...(Indices)> next; +}; + +template<int N> +struct build_indices { + typedef typename build_indices<N - 1>::type::next type; +}; + +template<> +struct build_indices<0> { + typedef indices<> type; +}; |
