Re: [Boost-bugs] [Boost C++ Libraries] #1403: Enable copying boost::array to const

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1403: Enable copying boost::array to const
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-02 03:28:07


#1403: Enable copying boost::array to const
---------------------------------+------------------------------------------
  Reporter: pop.atry_at_[hidden] | Owner:
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: None
   Version: Boost 1.34.1 | Severity: Problem
Resolution: | Keywords:
---------------------------------+------------------------------------------
Comment (by pop.atry_at_[hidden]):

 Currently, I have to use a static_cast and a reinterpret_cast to do so.
 {{{
 boost::array<int, 1> a = {{0}};
 boost::array<const int, 1> ca (
   reinterpret_cast<boost::array<const int, 1> const &> (
     static_cast<boost::array<int, 1> const &> {
       a
     )
   )
 );
 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1403#comment:1>
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:49:56 UTC