Commit d58a5651 authored by Marian Triebe's avatar Marian Triebe

Coding style nitpicks

parent a6cbec33
...@@ -61,8 +61,10 @@ class actor_ostream { ...@@ -61,8 +61,10 @@ class actor_ostream {
} }
template <class T> 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<<( inline typename std::enable_if<
T&& arg) { !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))); return write(std::to_string(std::forward<T>(arg)));
} }
......
...@@ -35,15 +35,15 @@ namespace caf { ...@@ -35,15 +35,15 @@ namespace caf {
*/ */
template <class T> template <class T>
class intrusive_ptr : detail::comparable<intrusive_ptr<T>>, class intrusive_ptr : detail::comparable<intrusive_ptr<T>>,
detail::comparable<intrusive_ptr<T>, const T*>, detail::comparable<intrusive_ptr<T>, const T*>,
detail::comparable<intrusive_ptr<T>, std::nullptr_t> { detail::comparable<intrusive_ptr<T>, std::nullptr_t> {
public: public:
using pointer = T* ; using pointer = T*;
using const_pointer = const T*; using const_pointer = const T*;
using element_type = T ; using element_type = T;
using reference = T& ; using reference = T&;
using const_reference = const T&; using const_reference = const T&;
constexpr intrusive_ptr() : m_ptr(nullptr) { constexpr intrusive_ptr() : m_ptr(nullptr) {
...@@ -69,7 +69,9 @@ class intrusive_ptr : detail::comparable<intrusive_ptr<T>>, ...@@ -69,7 +69,9 @@ class intrusive_ptr : detail::comparable<intrusive_ptr<T>>,
} }
~intrusive_ptr() { ~intrusive_ptr() {
if (m_ptr) m_ptr->deref(); if (m_ptr) {
m_ptr->deref();
}
} }
inline void swap(intrusive_ptr& other) { inline void swap(intrusive_ptr& other) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment