
Boost : 
Subject: Re: [boost] Interested in a generic safe ndimensional matrix/vector library?
From: Ð¢Ð¸Ð¼Ð¾Ñ„ÐµÐ¹ Ð˜Ð³Ð½Ð°Ñ‚ÑŒÐ¸Ñ‡ (fhq_at_[hidden])
Date: 20110222 06:02:00
>Tue, 22 Feb 2011 10:32:45 +0000 Alex HagenZanker
> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk