forked from boostorg/tuple
applied patch by Rupert Kittinger, avoids potentially undefined behavior
[SVN r30690]
This commit is contained in:
1 parent
9c6ef41dfe
commit
2d13a60d05
1 file changed
+2
-2
@@ -349,7 +349,7 @@ extract_and_check_delimiter(
|
||||
char c;
|
||||
if (is_delimiter) {
|
||||
is >> c;
|
||||
if (c!=d) {
|
||||
if (is.good() && c!=d) {
|
||||
is.setstate(std::ios::failbit);
|
||||
}
|
||||
}
|
||||
@@ -443,7 +443,7 @@ extract_and_check_delimiter(
|
||||
CharType c;
|
||||
if (is_delimiter) {
|
||||
is >> c;
|
||||
if (c!=d) {
|
||||
if (is.good() && c!=d) {
|
||||
is.setstate(std::ios::failbit);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user