Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
ed9f00ba
Commit
ed9f00ba
authored
Jul 26, 2013
by
Davis King
Browse files
Fully qualified the char_traits references to avoid name conflicts in
certain rare cases.
parent
1b23bb13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/string/string.h
dlib/string/string.h
+2
-2
No files found.
dlib/string/string.h
View file @
ed9f00ba
...
@@ -295,7 +295,7 @@ namespace dlib
...
@@ -295,7 +295,7 @@ namespace dlib
T
temp
;
T
temp
;
sin
>>
temp
;
sin
>>
temp
;
if
(
!
sin
)
throw
string_cast_error
(
narrow
(
str
));
if
(
!
sin
)
throw
string_cast_error
(
narrow
(
str
));
if
(
sin
.
get
()
!=
char_traits
<
charT
>::
eof
())
throw
string_cast_error
(
narrow
(
str
));
if
(
sin
.
get
()
!=
std
::
char_traits
<
charT
>::
eof
())
throw
string_cast_error
(
narrow
(
str
));
return
temp
;
return
temp
;
}
}
};
};
...
@@ -355,7 +355,7 @@ namespace dlib
...
@@ -355,7 +355,7 @@ namespace dlib
else \
else \
sin >> temp; \
sin >> temp; \
if (!sin) throw string_cast_error(narrow(str)); \
if (!sin) throw string_cast_error(narrow(str)); \
if (sin.get() != char_traits<charT>::eof()) throw string_cast_error(narrow(str)); \
if (sin.get() !=
std::
char_traits<charT>::eof()) throw string_cast_error(narrow(str)); \
return temp; \
return temp; \
} \
} \
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment