Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
f4bca79d
Commit
f4bca79d
authored
Jul 16, 2024
by
Simon Gene Gottlieb
Committed by
Jesse Beder
Nov 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fp_to_string uses now 2 spaces
parent
d4e00bd4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
include/yaml-cpp/fp_to_string.h
+0
-0
test/fp_to_string_test.cpp
+6
-6
No files found.
include/yaml-cpp/fp_to_string.h
View file @
f4bca79d
This diff is collapsed.
Click to expand it.
test/fp_to_string_test.cpp
View file @
f4bca79d
...
...
@@ -9,12 +9,12 @@ namespace {
*/
template
<
typename
T
>
static
std
::
string
convert_with_stringstream
(
T
v
,
size_t
precision
=
0
)
{
std
::
stringstream
ss
;
if
(
precision
>
0
)
{
ss
<<
std
::
setprecision
(
precision
);
}
ss
<<
v
;
return
ss
.
str
();
std
::
stringstream
ss
;
if
(
precision
>
0
)
{
ss
<<
std
::
setprecision
(
precision
);
}
ss
<<
v
;
return
ss
.
str
();
}
// Caution: Test involving 'convert_with_stringstream' are based on std::stringstream
...
...
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