Remove ambiguity due to simgear/misc/sgstream.cxx's skipws I/O manipulator
For some reason, g++ may see a 'skipws' I/O manipulator from the standard library (depending on the order of includes...) when compiling src/Navaids/poidb.cxx. This I/O manipulator is then in competition with one with the same name defined in simgear/misc/sgstream.cxx. Use std::ws to remove all ambiguity (std:skipws does something quite different!).
This commit is contained in:
parent
55f64820df
commit
c169ef581f
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <istream> // std::ws
|
||||
#include "poidb.hxx"
|
||||
|
||||
#include <simgear/compiler.h>
|
||||
|
@ -61,7 +62,7 @@ static PositionedID readPOIFromStream(std::istream& aStream, NavDataCache* cache
|
|||
return 0;
|
||||
}
|
||||
|
||||
aStream >> skipws;
|
||||
aStream >> std::ws;
|
||||
if (aStream.peek() == '#') {
|
||||
aStream >> skipeol;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue