Commit 05dd5a70 authored by wiebel's avatar wiebel
Browse files

[FIX #62] WValueSetBase now has the appropriate asserts.

parent 1781dd1b
......@@ -50,8 +50,6 @@ public:
: WValueSetBase( order, dimension ),
m_data( data )
{
assert( m_dimension >= 1 );
assert( m_order <= 2 );
}
/**
......@@ -62,7 +60,7 @@ public:
switch( m_order )
{
case 0 : // scalar
assert( m_dimension == 1 && "but m_order was 0");
assert( m_dimension == 1 && "but m_order was 0" );
return rawSize();
case 1 : // vector
assert( rawSize() % m_dimension == 0 );
......
......@@ -22,6 +22,7 @@
//---------------------------------------------------------------------------
#include <cstddef>
#include <cassert>
#include "WValueSetBase.h"
......@@ -30,6 +31,8 @@ WValueSetBase::WValueSetBase( char order, char dimension )
: m_order( order ),
m_dimension( dimension )
{
assert( order <= 2 );
assert( dimension >= 1 );
}
WValueSetBase::~WValueSetBase()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment