Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
5e48daaa
There was an error fetching the commit references. Please try again later.
Commit
5e48daaa
authored
8 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Fixed static assertions in Array::bind
parent
05a036ce
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TNL/Containers/Array_impl.h
+4
-1
4 additions, 1 deletion
src/TNL/Containers/Array_impl.h
with
4 additions
and
1 deletion
src/TNL/Containers/Array_impl.h
+
4
−
1
View file @
5e48daaa
...
...
@@ -222,7 +222,10 @@ bind( const ArrayT& array,
const
IndexType
&
begin
,
const
IndexType
&
size
)
{
Assert
(
(
std
::
is_same
<
Device
,
typename
ArrayT
::
DeviceType
>::
value
),
);
// all template parameters of Array must match, otherwise binding does not make sense
static_assert
(
std
::
is_same
<
Element
,
typename
ArrayT
::
ElementType
>::
value
,
"ElementType of both arrays must be the same."
);
static_assert
(
std
::
is_same
<
Device
,
typename
ArrayT
::
DeviceType
>::
value
,
"DeviceType of both arrays must be the same."
);
static_assert
(
std
::
is_same
<
Index
,
typename
ArrayT
::
IndexType
>::
value
,
"IndexType of both arrays must be the same."
);
Assert
(
begin
<=
array
.
getSize
(),
std
::
cerr
<<
" begin = "
<<
begin
<<
" array.getSize() = "
<<
array
.
getSize
()
);
Assert
(
begin
+
size
<=
array
.
getSize
(),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment