Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
d58a5651
Commit
d58a5651
authored
Oct 02, 2014
by
Marian Triebe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coding style nitpicks
parent
a6cbec33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
libcaf_core/caf/actor_ostream.hpp
libcaf_core/caf/actor_ostream.hpp
+4
-2
libcaf_core/caf/intrusive_ptr.hpp
libcaf_core/caf/intrusive_ptr.hpp
+8
-6
No files found.
libcaf_core/caf/actor_ostream.hpp
View file @
d58a5651
...
...
@@ -61,8 +61,10 @@ class actor_ostream {
}
template
<
class
T
>
inline
typename
std
::
enable_if
<!
std
::
is_convertible
<
T
,
std
::
string
>::
value
&&
!
std
::
is_convertible
<
T
,
message
>::
value
,
actor_ostream
&>::
type
operator
<<
(
T
&&
arg
)
{
inline
typename
std
::
enable_if
<
!
std
::
is_convertible
<
T
,
std
::
string
>::
value
&&
!
std
::
is_convertible
<
T
,
message
>::
value
,
actor_ostream
&
>::
type
operator
<<
(
T
&&
arg
)
{
return
write
(
std
::
to_string
(
std
::
forward
<
T
>
(
arg
)));
}
...
...
libcaf_core/caf/intrusive_ptr.hpp
View file @
d58a5651
...
...
@@ -35,15 +35,15 @@ namespace caf {
*/
template
<
class
T
>
class
intrusive_ptr
:
detail
::
comparable
<
intrusive_ptr
<
T
>>
,
detail
::
comparable
<
intrusive_ptr
<
T
>
,
const
T
*>
,
detail
::
comparable
<
intrusive_ptr
<
T
>
,
std
::
nullptr_t
>
{
detail
::
comparable
<
intrusive_ptr
<
T
>
,
const
T
*>
,
detail
::
comparable
<
intrusive_ptr
<
T
>
,
std
::
nullptr_t
>
{
public:
using
pointer
=
T
*
;
using
pointer
=
T
*
;
using
const_pointer
=
const
T
*
;
using
element_type
=
T
;
using
reference
=
T
&
;
using
element_type
=
T
;
using
reference
=
T
&
;
using
const_reference
=
const
T
&
;
constexpr
intrusive_ptr
()
:
m_ptr
(
nullptr
)
{
...
...
@@ -69,7 +69,9 @@ class intrusive_ptr : detail::comparable<intrusive_ptr<T>>,
}
~
intrusive_ptr
()
{
if
(
m_ptr
)
m_ptr
->
deref
();
if
(
m_ptr
)
{
m_ptr
->
deref
();
}
}
inline
void
swap
(
intrusive_ptr
&
other
)
{
...
...
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