Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
d8a67294
Commit
d8a67294
authored
Mar 21, 2019
by
Praetorius, Simon
Browse files
make tuple_size and tuple_element a class
parent
557efb43
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/common/Range.hpp
View file @
d8a67294
...
...
@@ -57,12 +57,13 @@ namespace AMDiS
namespace
std
{
template
<
class
Int
,
Int
I0
,
Int
I1
>
struct
tuple_size
<
AMDiS
::
Impl
::
range_impl
<
Int
,
I0
,
I1
>>
:
std
::
integral_constant
<
std
::
size_t
,
std
::
size_t
(
I1
-
I0
)
>
{};
class
tuple_size
<
AMDiS
::
Impl
::
range_impl
<
Int
,
I0
,
I1
>>
:
public
std
::
integral_constant
<
std
::
size_t
,
std
::
size_t
(
I1
-
I0
)
>
{};
template
<
std
::
size_t
I
,
class
Int
,
Int
I0
,
Int
I1
>
struct
tuple_element
<
I
,
AMDiS
::
Impl
::
range_impl
<
Int
,
I0
,
I1
>>
class
tuple_element
<
I
,
AMDiS
::
Impl
::
range_impl
<
Int
,
I0
,
I1
>>
{
public:
using
type
=
Int
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment