blob: c36e044c7a71c17780618a050455e773786328f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-src_navtex_navtex.cxx,v 1.2 2013/07/05 21:34:12 joerg Exp $
--- src/navtex/navtex.cxx.orig 2013-05-03 14:31:34.000000000 +0000
+++ src/navtex/navtex.cxx
@@ -177,12 +177,12 @@ bool read_until_delim( std::istream & is
if( ! std::getline( istrm, parsed_str, delim ) ) return false ;
std::stringstream sstrm( parsed_str );
sstrm >> ref ;
- return sstrm ;
+ return !sstrm.bad();
}
static bool read_until_delim( std::istream & istrm, std::string & ref )
{
- return std::getline( istrm, ref, delim );
+ return !std::getline( istrm, ref, delim ).bad();
}
class NavtexRecord
|