This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tr1/function and phoenix


Philipp Reh wrote:
> As far as I can see, the tr1 working paper doesn't forbid that a functor
> defines operator &. I couldn't reproduce the issue with a simpler test
> so it might have to do with the fact that the phoenix functor is a temporary
> in my test case.
>   
In general, in our implementation of the C++03 library (and TR1, that is
N1836, which assumes a C++03 implementation outside the new facilities)
we do not take any specific action to protect vs user defined operator&,
in particular we don't use anything similar to boost::addressof
(basically, the rationale for that within the limits of C++03 is Table
32 and allocator.members, if I remember correctly). Agreed that all this
is in flux for C++0x, however, see for example N2257 and the DRs linked
therein.

Note that, in general, at this point in the standardization process, TR1
facilities should be considered more or less frozen. That means, likely
you can expect to see changes in this area only in the eventual
std::function.

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]