Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
38565ec4
Commit
38565ec4
authored
Jan 31, 2022
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Add a specialization to write complex data (EmbeddedData)
parent
750a785a
No related branches found
No related tags found
1 merge request
!126
Begin socket handling: core functionalities are available
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/language/utils/OStream.hpp
+11
-0
11 additions, 0 deletions
src/language/utils/OStream.hpp
with
11 additions
and
0 deletions
src/language/utils/OStream.hpp
+
11
−
0
View file @
38565ec4
...
...
@@ -23,6 +23,17 @@ class OStream
return
os
;
}
template
<
typename
DataT
>
friend
std
::
shared_ptr
<
const
OStream
>
operator
<<
(
const
std
::
shared_ptr
<
const
OStream
>&
os
,
const
std
::
shared_ptr
<
const
DataT
>&
t
)
{
Assert
(
os
.
use_count
()
>
0
,
"non allocated stream"
);
if
(
os
->
m_ostream
!=
nullptr
)
{
*
os
->
m_ostream
<<
*
t
;
}
return
os
;
}
OStream
(
std
::
ostream
&
os
)
:
m_ostream
(
&
os
)
{}
OStream
()
=
default
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment