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
gaoqiong
yaml-cpp
Commits
27d8a0e3
Unverified
Commit
27d8a0e3
authored
Jun 28, 2020
by
Dekken
Committed by
GitHub
Jun 27, 2020
Browse files
Refactor to allow MSVC without #define NOMINMAX (#905)
parent
97d1ae54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/yaml-cpp/node/convert.h
include/yaml-cpp/node/convert.h
+2
-2
No files found.
include/yaml-cpp/node/convert.h
View file @
27d8a0e3
...
...
@@ -120,8 +120,8 @@ typename std::enable_if<(std::is_same<T, unsigned char>::value ||
ConvertStreamTo
(
std
::
stringstream
&
stream
,
T
&
rhs
)
{
int
num
;
if
((
stream
>>
std
::
noskipws
>>
num
)
&&
(
stream
>>
std
::
ws
).
eof
())
{
if
(
num
>=
std
::
numeric_limits
<
T
>::
min
()
&&
num
<=
std
::
numeric_limits
<
T
>::
max
())
{
if
(
num
>=
(
std
::
numeric_limits
<
T
>::
min
)
()
&&
num
<=
(
std
::
numeric_limits
<
T
>::
max
)
())
{
rhs
=
num
;
return
true
;
}
...
...
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