Bug#320630: libc6-dev: /usr/include/sys/socket.h broken with g++ 4.x
On Sat, Jul 30, 2005 at 09:41:30PM +0300, Jaakko Niemi wrote:
> Package: libc6-dev
> Version: 2.3.5-2
> Severity: normal
> Tags: patch
>
> /usr/include/sys/socket.h has the definitions of SHUT_* in
> a anonymous enum. g++ 4 started enforcing C++ standard part
> which forbids using anonymous enums as template arguments.
>
> Please see the thread starting with:
>
> http://lists.debian.org/debian-devel/2005/07/msg01486.html
>
> for more discussion about this. So, please just ditch the
> enum and leave #defines.
No, changing headers that way is a bad idea. Fix your program to
not assume whether constants are anonymous unions or defines.
Reply to: