Re: [Boost-bugs] [Boost C++ Libraries] #1814: foreach broken by is_char_array mpl assertion.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1814: foreach broken by is_char_array mpl assertion.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-11 16:40:54


#1814: foreach broken by is_char_array mpl assertion.
----------------------------------+-----------------------------------------
  Reporter: pluto_at_[hidden] | Owner: eric_niebler
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: foreach
   Version: Boost 1.35.0 | Severity: Regression
Resolution: fixed | Keywords:
----------------------------------+-----------------------------------------
Comment (by eric_niebler):

 This problem had already been fixed in trunk, but the fix didn't make it
 into the release branch in time for 1.35. I have merged the fix into the
 release branch in case there is a 1.35.1 release.

 If you would like to make the change locally, the simple fix is to change
 this:

 {{{
     BOOST_MPL_ASSERT_MSG( (!is_char_array<T>::value),
 IS_THIS_AN_ARRAY_OR_A_NULL_TERMINATED_STRING, (T) );
 }}}

 to this:

 {{{
     BOOST_MPL_ASSERT_MSG( (!is_char_array<T>::value),
 IS_THIS_AN_ARRAY_OR_A_NULL_TERMINATED_STRING, (T&) );
 }}}

 Note the {{{(T&)}}} at the end, rather than the {{{(T)}}}.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1814#comment:3>
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:57 UTC