Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2886: Boost.Array gives MS warnings C4510 and C4610
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-19 16:53:08
#2886: Boost.Array gives MS warnings C4510 and C4610
---------------------------+------------------------------------------------
Reporter: pbristow | Owner: no-maintainer
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: array
Version: Boost 1.38.0 | Severity: Cosmetic
Resolution: | Keywords: array warning
---------------------------+------------------------------------------------
Comment(by pbristow):
Replying to [comment:1 steven_watanabe]:
> Why array<const double, 99> rather than const array<double, 99>?
>
> Also, array<const double, 99> does not quite work correctly,
> because iterator::value_type is const double rather than double.
You are right, as always.
Asking for an array of const doubles still *feels* resonable.
So, since I am sure I am not the only one to suffer from constant const
confusion, it might be useful to document that const array is best, and
briefly why?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2886#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC