[Boost-bugs] [Boost C++ Libraries] #1796: compile error when SDL_syswm.h (from sdl library) is included before foreach.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #1796: compile error when SDL_syswm.h (from sdl library) is included before foreach.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-08 20:46:39


#1796: compile error when SDL_syswm.h (from sdl library) is included before
foreach.hpp
-----------------------+----------------------------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: Boost 1.36.0
Component: None | Version: Boost 1.35.0
 Severity: Cosmetic | Keywords: sdl foreach include
-----------------------+----------------------------------------------------
 foreach won't compile when included after SDL_syswm.h

 the following two lines

 #include <SDL_syswm.h>
 #include <boost/foreach.hpp>

 will result in:

 -------------- Build: Debug in sdlCastleAttack ---------------

 Compiling: wakka/sdl/MusicManager.cpp
 /usr/include/boost/foreach.hpp:223: Fehler: expected nested-name-specifier
 before »int«
 /usr/include/boost/foreach.hpp:223: Fehler: zwei oder mehr Datentypen in
 Deklaration von »parameter«
 Process terminated with status 1 (0 minutes, 1 seconds)
 2 errors, 0 warnings

 when swapping the two includes it compiles without any problems

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1796>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC