StaticAssert added

- catch people using silly template sizes for FixedList, PackedList
This commit is contained in:
Mark Olesen
2009-02-27 16:41:51 +01:00
parent dbc9b7427a
commit 106d417de0
4 changed files with 98 additions and 4 deletions

View File

@ -28,6 +28,7 @@ Description
\*---------------------------------------------------------------------------*/
#include "uLabel.H"
#include "IOstreams.H"
#include "PackedBoolList.H"
@ -38,7 +39,7 @@ using namespace Foam;
int main(int argc, char *argv[])
{
Info<< "PackedList max_bits() = " << PackedList<0>::max_bits() << nl;
Info<< "PackedList max_bits() = " << PackedList<>::max_bits() << nl;
Info<< "\ntest allocation with value\n";
PackedList<3> list1(5,1);