aboutsummaryrefslogtreecommitdiff
path: root/src/support/type
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-11-13 18:44:33 +0100
committerAdrian Kummerlaender2014-11-13 18:44:33 +0100
commitb9d62d5ce1e3f92a8ab34239c6e4044ad57180df (patch)
tree58907e0e73ee745e2faea39379f859be0030ae1c /src/support/type
parentaa7afee1047a2de790a70dceda9079c8d5d01850 (diff)
downloadInputXSLT-b9d62d5ce1e3f92a8ab34239c6e4044ad57180df.tar
InputXSLT-b9d62d5ce1e3f92a8ab34239c6e4044ad57180df.tar.gz
InputXSLT-b9d62d5ce1e3f92a8ab34239c6e4044ad57180df.tar.bz2
InputXSLT-b9d62d5ce1e3f92a8ab34239c6e4044ad57180df.tar.lz
InputXSLT-b9d62d5ce1e3f92a8ab34239c6e4044ad57180df.tar.xz
InputXSLT-b9d62d5ce1e3f92a8ab34239c6e4044ad57180df.tar.zst
InputXSLT-b9d62d5ce1e3f92a8ab34239c6e4044ad57180df.zip
Replaced custom `Sequence` implementation with C++14 `std::integer_sequence`
* both the `Sequence` and `IndexSequence` helper templates were developed prior to C++14 * as the new standard covers exactly the functionality provided by these templates they should be replaced ** they are used as indexes to the _Xalan_ parameter array in `FunctionBase`
Diffstat (limited to 'src/support/type')
-rw-r--r--src/support/type/sequence.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/support/type/sequence.h b/src/support/type/sequence.h
deleted file mode 100644
index a404e71..0000000
--- a/src/support/type/sequence.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef INPUTXSLT_SRC_SUPPORT_TYPE_SEQUENCE_H_
-#define INPUTXSLT_SRC_SUPPORT_TYPE_SEQUENCE_H_
-
-#include <cstddef>
-#include <type_traits>
-
-namespace InputXSLT {
-
-template <std::size_t...>
-struct Sequence {
- typedef Sequence type;
-};
-
-template <
- std::size_t Size,
- std::size_t Index = 0,
- std::size_t... Current
->
-struct IndexSequence {
- typedef typename std::conditional<
- Index < Size,
- IndexSequence<Size, Index + 1, Current..., Index>,
- Sequence<Current...>
- >::type::type type;
-};
-
-}
-
-#endif // INPUTXSLT_SRC_SUPPORT_TYPE_SEQUENCE_H_