Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
dSS - digitalSTROM Server
dss-mainline
Merge requests
!955
avoid multi-line log messages
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Michael Tross
requested to merge
mtross/dss-mainline:single-line-logs
into
master
7 years ago
Overview
6
Commits
1
Pipelines
0
Changes
1
0
0
Compare
master
version 1
dc874336
7 years ago
master (base)
and
latest version
latest version
7e4ed895
1 commit,
7 years ago
version 1
dc874336
1 commit,
7 years ago
1 file
+
2
−
10
Expand all files
Preferences
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
src/ds/str.h
+
2
−
10
Options
View file @ 7e4ed895
Edit in single-file editor
Open in Web IDE
Show full file
@@ -123,17 +123,9 @@ struct StrReflect : boost::noncopyable {
template
<
typename
T
>
struct
Str
<
T
,
typename
std
::
enable_if
<
ds
::
reflector
<
T
>::
is_defined
::
value
>::
type
>
{
static
inline
void
f
(
std
::
ostream
&
ostream
,
const
T
&
x
,
int
indent
)
{
// \n at the start and at the end of struct seem like good compromise
// between readability, consumed vertical space and code complexity
ostream
<<
"(
\n
"
;
for
(
int
i
=
0
;
i
<
indent
;
i
++
)
{
ostream
<<
" "
;
}
ostream
<<
"{"
;
ds
::
reflector
<
T
>::
visit
(
StrReflect
<
T
>
(
ostream
,
x
,
indent
));
ostream
<<
")
\n
"
;
for
(
int
i
=
0
;
i
<
indent
-
1
;
i
++
)
{
ostream
<<
" "
;
}
ostream
<<
"}"
;
}
};
Menu
Explore
Projects
Groups
Topics
Snippets