[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN/internal slice_error.hh
From: |
Gerhard Reitmayr |
Subject: |
[Toon-members] TooN/internal slice_error.hh |
Date: |
Sat, 04 Jun 2011 09:31:54 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Gerhard Reitmayr <gerhard> 11/06/04 09:31:54
Modified files:
internal : slice_error.hh
Log message:
allow zero length slizes, makes more uniform code
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/internal/slice_error.hh?cvsroot=toon&r1=1.12&r2=1.13
Patches:
Index: slice_error.hh
===================================================================
RCS file: /cvsroot/toon/TooN/internal/slice_error.hh,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- slice_error.hh 21 Mar 2011 22:21:37 -0000 1.12
+++ slice_error.hh 4 Jun 2011 09:31:54 -0000 1.13
@@ -79,7 +79,7 @@
//Sanity check all basic static sizes
BadSlice<!(Size== Dynamic || Size==Resizable || Size >
0)>::check();
BadSlice<!(Start >= 0)>::check();
- BadSlice<!(Length > 0)>::check();
+ BadSlice<!(Length >= 0)>::check();
BadSlice<(Size != Dynamic && Size != Resizable &&
(Start + Length > Size))>::check();
}
@@ -97,13 +97,13 @@
//Sanity check all basic static sizes
BadSlice<!(Size == Dynamic || Size==Resizable || Size
> 0)>::check();
BadSlice<!(Start == Dynamic || Start >= 0)>::check();
- BadSlice<!(Length == Dynamic || Length > 0)>::check();
+ BadSlice<!(Length == Dynamic || Length >= 0)>::check();
//We can make sure Length <= Size, even if Start is
unknown
BadSlice<(Size!=Dynamic && Size != Resizable && Length
!= Dynamic && Length > Size)>::check();
//We can make sure Start < Size even if Length is
unknown
- BadSlice<(Start != Dynamic && Size != Dynamic && Size
!= Resizable && Start >= Size)>::check();
+ BadSlice<(Start != Dynamic && Size != Dynamic && Size
!= Resizable && Start > Size)>::check();
BadSlice<(Size != Dynamic && Size != Resizable && Start
!= Dynamic && Length != Dynamic && Start + Length > Size)>::check();
#ifndef TOON_NDEBUG_MISMATCH
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Toon-members] TooN/internal slice_error.hh,
Gerhard Reitmayr <=