Skip to content

Commit 403982d

Browse files
authored
Merge pull request InsightSoftwareConsortium#5707 from N-Dekker/FixedArray-static_assert-Length-greater-than-zero
2 parents cdd7a41 + 6b5eed2 commit 403982d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/Core/Common/include/itkFixedArray.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ namespace itk
5252
template <typename TValue, unsigned int VLength = 3>
5353
class ITK_TEMPLATE_EXPORT FixedArray
5454
{
55+
static_assert(VLength > 0);
56+
5557
public:
5658
/** Length constant */
5759
static constexpr unsigned int Length = VLength;

0 commit comments

Comments
 (0)