From b9d62d5ce1e3f92a8ab34239c6e4044ad57180df Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 13 Nov 2014 18:44:33 +0100 Subject: 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` --- src/support/type/sequence.h | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/support/type/sequence.h (limited to 'src/support/type') 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 -#include - -namespace InputXSLT { - -template -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, - Sequence - >::type::type type; -}; - -} - -#endif // INPUTXSLT_SRC_SUPPORT_TYPE_SEQUENCE_H_ -- cgit v1.2.3