Boost logo

Boost Users :

Subject: Re: [Boost-users] warning in boost concept
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-04-09 09:24:43


oberhoff wrote:
> On 2010-04-08 14:52:48 +0200, Mathias Gaunard
> <mathias.gaunard_at_[hidden]> said:
>
>> oberhoff wrote:
>>> Hi,
>>>
>>> this is using boost 1.42, I think the same happens in 1.43
>>>
>>> Using boost::accumulators generates a compiler warning in
>>> boost/concept_check.hpp:335. it seems the Arg member is a reference, but
>>> gcc doesnt like that there is no way to initialize it since it is
>>> private and the class does not have a constructor. this is particularly
>>> annoying since due to metaprogramming and the lag of variadic templates
>>> the instantiation trace in the error message for a single error is a few
>>> pages long, and it comes each time I instantiate an accumulator. is
>>> there a way to avoid this?
>>
>> Declaring a constructor without defining it would fix the issue.
>
> so should I forward this to the maintainer of accumulators?

I don't know whether that's accumulators or concept check's fault.
File a ticket for accumulators for the time being?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net