Commit bb41604e authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

correction for zero size series

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2139
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 8ab40b6e
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: README.changelog,v 1.60 2006-06-20 07:26:29 tforb Exp $
* $Id: README.changelog,v 1.61 2006-06-21 11:24:27 tforb Exp $
*
* Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)
*
......@@ -21,12 +21,16 @@
/*! \page page_changelog ChangeLog (AFF)
$Id: README.changelog,v 1.60 2006-06-20 07:26:29 tforb Exp $
$Id: README.changelog,v 1.61 2006-06-21 11:24:27 tforb Exp $
\sa \ref page_project_status
Major changes in the interface of the library are marked by \b !!.
- \b 20/06/2006 (thof)
- aff::Series objects may now be initialized with size zero
defined by aff::LinearShape
- \b 19/06/2006 (thof)
- \b !! aff::ConstArray as well as aff::ConstSeries now offer the typedefs
Tvalue, Tpointer, and Treference as non-const types
......@@ -247,7 +251,7 @@
/*! \page page_project_status Project status (AFF)
$Id: README.changelog,v 1.60 2006-06-20 07:26:29 tforb Exp $
$Id: README.changelog,v 1.61 2006-06-21 11:24:27 tforb Exp $
\sa \ref page_changelog
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: linearshape.h,v 1.7 2006-04-27 07:21:38 tforb Exp $
* $Id: linearshape.h,v 1.8 2006-06-21 11:24:28 tforb Exp $
* \author Thomas Forbriger
* \date 23/12/2003
*
......@@ -37,6 +37,7 @@
* - 05/07/2005 V1.3 provide index shifting
* - 27/04/2006 V1.4 assert: last >= first
* was: last > first which is too strict
* - 20/06/2006 V1.5 allow arrays of size zero
*
* ============================================================================
*/
......@@ -47,7 +48,7 @@
#define AFF_LINEARSHAPE_H_VERSION \
"AFF_LINEARSHAPE_H V1.4"
#define AFF_LINEARSHAPE_H_CVSID \
"$Id: linearshape.h,v 1.7 2006-04-27 07:21:38 tforb Exp $"
"$Id: linearshape.h,v 1.8 2006-06-21 11:24:28 tforb Exp $"
namespace aff {
......@@ -100,7 +101,7 @@ namespace aff {
const Tsubscript& firstinrepr):
Mfirst(first), Mlast(last), Mbase(first-firstinrepr)
{
AFF_assert((Mlast>=Mfirst),
AFF_assert((this->size()>=0),
"ERROR (LinearShape): inconsistent constructor arguments");
}
//! return first legal index
......
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