[boost] Re: status of array_traits?

2003-01-12 Thread Thorsten Ottosen

"Thorsten Ottosen" <[EMAIL PROTECTED]> wrote in message
avk23p$1m8$[EMAIL PROTECTED]">news:avk23p$1m8$[EMAIL PROTECTED]...
>
> "Ronald Garcia" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> > IIRC, the array_traits library was pulled off of the boost main page
> > and moved into the sandbox a while ago.  What is its current status?  Is
> > being actively developed or is it currently in stasis?
>
> I recently looked into the array_traits because I needed it for the
> container algorithms if they should work for
> built.in arrays too. However, after a long time I came to the conclusion
> that they will never work
> on non-conforming compilers like vc6/7. The problem is simply the
inability
> to deduce the array size by this overload:
>
> template< typename T, int sz >
> void foo( T (&a) [sz] );

Ups...I was wrong. The above code compiles fine. So the size()/end()
functions from array traits can be made. The problem
is this:

template< typename C >
struct array_traits;

template< typename C, std::size_t N >
struct array_traits< T[sz] >; // won't work

regards

Thorsten



___
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost



[boost] Re: status of array_traits?

2003-01-09 Thread Thorsten Ottosen

"Ronald Garcia" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> IIRC, the array_traits library was pulled off of the boost main page
> and moved into the sandbox a while ago.  What is its current status?  Is
> being actively developed or is it currently in stasis?

I recently looked into the array_traits because I needed it for the
container algorithms if they should work for
built.in arrays too. However, after a long time I came to the conclusion
that they will never work
on non-conforming compilers like vc6/7. The problem is simply the inability
to deduce the array size by this overload:

template< typename T, int sz >
void foo( T (&a) [sz] );

If somebody knows how to remedy this, it would enable array_traits for those
compilers.

regards

Thorsten



___
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost