This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [C++ patch] Allow p->~T() when T is a vector


On Thu, 2 Aug 2012, Richard Guenther wrote:

On Thu, Aug 2, 2012 at 1:42 PM, Marc Glisse <marc.glisse@inria.fr> wrote:
Hello,

this patch allows p->~T() when T is (after substitution) a vector, which is
necessary for use in std::vector for instance.

Why not include VECTOR_TYPE in ARITHMETIC_TYPE_P?

I often aim for the least disruptive change...


I just tried to look at the uses of ARITHMETIC_TYPE_P, and the first one I could find was to detect whether the type is convertible to bool :-(

--
Marc Glisse


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