This is the mail archive of the
mailing list for the Cygwin project.
Re: find(1) memory leak in cygheap
Greg Chicares wrote:
> On 2009-08-20 11:54Z, Dave Korn wrote:
>> [...] (Hmm, now there's an idea. GCC needs an
>> __attribute__ that you can tag onto a class to say it must be a POD-type and
>> get a compiler error if anyone ever adds a virtual function or anything else
>> that would make the layout non-POD.)
> | GCC 4.3.1 provides the __is_pod extension
> | tr1/type_traits is implemented using __is_pod
> Combining that with static_assert, I suppose you could write
> this restriction in standard C++ (TR1) instead of creating a
> new __attribute__.
Ooh, nice trick. Thanks.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple