summaryrefslogtreecommitdiffstats
path: root/src/Generating/IntGen.h
diff options
context:
space:
mode:
authortycho <tycho@localhost>2015-03-11 11:39:49 +0100
committertycho <tycho@localhost>2015-03-11 11:39:49 +0100
commit8646e95b6f91942e7741830dc057daa0e9a40aed (patch)
tree8802209f399b855bf2d13b08bfef0dea8cca0b74 /src/Generating/IntGen.h
parentFixed Sequence Generator for IntGen (diff)
downloadcuberite-8646e95b6f91942e7741830dc057daa0e9a40aed.tar
cuberite-8646e95b6f91942e7741830dc057daa0e9a40aed.tar.gz
cuberite-8646e95b6f91942e7741830dc057daa0e9a40aed.tar.bz2
cuberite-8646e95b6f91942e7741830dc057daa0e9a40aed.tar.lz
cuberite-8646e95b6f91942e7741830dc057daa0e9a40aed.tar.xz
cuberite-8646e95b6f91942e7741830dc057daa0e9a40aed.tar.zst
cuberite-8646e95b6f91942e7741830dc057daa0e9a40aed.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/IntGen.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Generating/IntGen.h b/src/Generating/IntGen.h
index 1ffc15c6b..fac500fa8 100644
--- a/src/Generating/IntGen.h
+++ b/src/Generating/IntGen.h
@@ -73,14 +73,19 @@ public:
// Code adapted from http://stackoverflow.com/questions/7858817/unpacking-a-tuple-to-call-a-matching-function-pointer
template<int ...>
-struct seq { };
+struct seq
+{
+};
template<int N, int ...S>
-struct gens : gens<N-1, N-1, S...> { };
+struct gens : gens<N-1, N-1, S...>
+{
+};
template<int ...S>
-struct gens<0, S...> {
- typedef seq<S...> type;
+struct gens<0, S...>
+{
+ typedef seq<S...> type;
};