Boost logo

Boost :

Subject: Re: [boost] [array] compile-time checked access
From: TONGARI (tongari95_at_[hidden])
Date: 2012-11-05 07:02:33


2012/11/5 Tobias Loew <Tobias.Loew_at_[hidden]>

> Hi,
>
> I was just rewriting some old code with hard coded indices for array access
> and though that compile-time checked access to array elements would be a
> nice thing.
> Maybe there are smart compilers out there that emit warnings or errors for
> a
> hard coded out-of-bounds access, but my compiler does not.
>
> So, code like
>
>
>
> compiles without warnings or erros.
> Now, adding the following functions to array
>
>
>
> would make it possible to write
>
>
>
> which results in the expected error messages.
>

I see only the blanks, any code there?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk