Boost logo

Boost :

Subject: Re: [boost] [fusion] boost::fusion::nil bug
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2011-08-23 12:46:07


Le 23/08/11 17:19, Eric Niebler a écrit :
> On 8/21/2011 10:00 PM, Eric Niebler wrote:
>> On 8/21/2011 6:03 AM, Jeroen Habraken wrote:
>>> boost-trunk/boost/fusion/sequence/intrinsic/detail/segmented_end.hpp:33:70:
>>> error: invalid use of incomplete type 'fusion::nil'
>>> segmented_end_impl<Sequence, fusion::nil>::call(seq,
>>> fusion::nil()));
>> This is my bug. I'll see about fixing it.
> OK, I've fixed this on trunk. Jeroen, I'm having difficulty running
> regression tests with clang. Can you run Fusion's test suite and tell me
> if everything is ok?
>
Hi,

I have reached to build Boost.Conversion and Boost.Fusion with clang-2.9
(03 and 0x) without any major trouble after updating the trunk. However
I get a warning that could eassily be removed

In file included from
../../../boost/fusion/algorithm/iteration/reverse_fold.hpp:14:
../../../boost/fusion/algorithm/iteration/detail/fold.hpp:189:48:
warning: unused parameter 'it0' [-Wunused-parameter]
             call(State const& state,It0 const& it0,F f)
                                                ^
../../../boost/fusion/algorithm/iteration/detail/fold.hpp:189:54:
warning: unused parameter 'f' [-Wunused-parameter]
             call(State const& state,It0 const& it0,F f)

with this patch

iMac-de-Vicente-Botet-Escriba:fusion viboes$ svn diff
algorithm/iteration/detail/fold.hpp
Index: algorithm/iteration/detail/fold.hpp
===================================================================
--- algorithm/iteration/detail/fold.hpp (revision 74020)
+++ algorithm/iteration/detail/fold.hpp (working copy)
@@ -186,7 +186,7 @@
          {
              template<typename State, typename It0, typename F>
              static Result
- call(State const& state,It0 const& it0,F f)
+ call(State const& state,It0 const&,F)
              {
                  return static_cast<Result>(state);
              }

Could you please commit this minor change?

Best,
Vicente


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