Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
0b6b6ce1
Commit
0b6b6ce1
authored
Nov 02, 2010
by
Mark Olesen
Browse files
ENH: StaticAssert to avoid invalid sizing in DynamicField, DynamicList
parent
2ec13249
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/containers/Lists/DynamicList/DynamicList.H
View file @
0b6b6ce1
...
...
@@ -44,6 +44,7 @@ SourceFiles
#define DynamicList_H
#include
"List.H"
#include
"StaticAssert.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
@@ -78,6 +79,9 @@ class DynamicList
:
public
List
<
T
>
{
//- Avoid invalid sizing parameters
StaticAssert
((
SizeInc
||
SizeMult
)
&&
SizeDiv
);
// Private data
//- The capacity (allocated size) of the underlying list.
...
...
src/OpenFOAM/fields/Fields/DynamicField/DynamicField.H
View file @
0b6b6ce1
...
...
@@ -37,6 +37,7 @@ SourceFiles
#define DynamicField_H
#include
"Field.H"
#include
"StaticAssert.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
@@ -71,6 +72,9 @@ class DynamicField
:
public
Field
<
T
>
{
//- Avoid invalid sizing parameters
StaticAssert
((
SizeInc
||
SizeMult
)
&&
SizeDiv
);
// Private data
//- The capacity (allocated size) of the underlying field.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment