$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] Interested in a generic safe n-dimensional matrix/vector library?
From: ТимоÑей ÐгнаÑÑÐ¸Ñ (fhq_at_[hidden])
Date: 2011-02-22 06:02:00
>Tue, 22 Feb 2011 10:32:45 +0000 Alex Hagen-Zanker
> On 21/02/2011 20:19, ТимоÑей ÐгнаÑÑÐ¸Ñ wrote:
> > Safe variadic functions with parameter count checking. For example consider
> a constructor of the N dimensional vector of T takes only N farameters that
> are convertable to T and fails othervise:
> Are you sure this is right? It seems that the N parameters are
> dimensions and should be convertable to an integer like size_t. T is the
> value_type and could be anything?
Sorry, i guess i want. clear enough. vector template is defined like this:
template <class T, size_t N>
class vector;
Where T is arbitrary type (supposedly arithmetic, or it woult be meaningless otherwise) and N is an amount of components in a vector (aka vector dimension or size) and not an amount of dimensions in an array (vector is a one dimensional array of elements). So vector is statically sized, and parameters passed to constructor are values to be stored in it and not sizes of corresponding array dimensions.