Subject: Re: [boost] [foreach] use of boost_foreach_argument_dependent_lookup_hack
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2015-07-15 03:39:41


On Wed, Jul 15, 2015 at 7:24 AM, Tim Blechmann <tim_at_[hidden]> wrote:
>> If there are config macros to disable the offending macros then that's
>> the solution. I realize it's difficult for Qt and Apple to turn them on
>> by default but this shouldn't be that hard for their users. And perhaps
>> it should be advertised as the recommended way of working with Qt.
>> Eventually, this should become headache for Qt devs and those who use
>> these macros in API, not for us.
>
> qt cannot change their defaults, as it would change their API. boost can
> address the default *without* breaking the API.

It looks like changing the tag or namespace name in Boost.Foreach is
an API change. I don't think #pragma-based solution is viable because
of limited portability and the need to be applied to all dependent
libraries as well.

> the headache is not for Qt devs, they don't use boost. the headache is
> for their users. just like, it is not your headache or joaquin's, but
> the headache of their users.

It becomes Qt devs' problem if users start to complain (to Qt devs).