diff --git a/beast/net/BufferType.h b/beast/net/BufferType.h index 4e3ab1478..a94990a3b 100644 --- a/beast/net/BufferType.h +++ b/beast/net/BufferType.h @@ -53,7 +53,7 @@ public: template BufferType (BufferType const& other) - : m_data (other.cast ()) + : m_data (other.template cast ()) , m_size (other.size ()) { } @@ -75,7 +75,7 @@ public: BufferType& operator= ( BufferType const& other) noexcept { - m_data = other.cast (); + m_data = other.template cast (); m_size = other.size (); return *this; } diff --git a/beast/smart_ptr/SharedPtr.h b/beast/smart_ptr/SharedPtr.h index f1ce3754c..36370897f 100644 --- a/beast/smart_ptr/SharedPtr.h +++ b/beast/smart_ptr/SharedPtr.h @@ -164,7 +164,7 @@ public: template SharedPtr (SharedPtr && sp) noexcept - : m_p (sp.swap (nullptr)) + : m_p (sp.template swap (nullptr)) { } /** @} */ @@ -185,7 +185,7 @@ public: template SharedPtr& operator= (SharedPtr && sp) { - return assign (sp.swap (nullptr)); + return assign (sp.template swap (nullptr)); } /** @} */ #endif