Skip to content

Commit bfb570e

Browse files
committed
Removing unnecessary copy/move constructor/assignment operators on stream buffer class.
1 parent 91e115f commit bfb570e

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

Release/include/cpprest/astreambuf.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -827,12 +827,6 @@ namespace streams
827827
/// </summary>
828828
streambuf() { }
829829

830-
/// <summary>
831-
/// Copy constructor.
832-
/// </summary>
833-
/// <param name="other">The source object.</param>
834-
streambuf(const streambuf &other) : m_buffer(other.m_buffer) { }
835-
836830
/// <summary>
837831
/// Converter Constructor.
838832
/// </summary>
@@ -853,26 +847,6 @@ namespace streams
853847
"incompatible stream character types");
854848
}
855849

856-
/// <summary>
857-
/// Move constructor.
858-
/// </summary>
859-
/// <param name="other">The source object.</param>
860-
streambuf(streambuf &&other) : m_buffer(std::move(other.m_buffer)) { }
861-
862-
/// <summary>
863-
/// Assignment operator.
864-
/// </summary>
865-
/// <param name="other">The source object.</param>
866-
/// <returns>A reference to the <c>streambuf</c> object that contains the result of the assignment.</returns>
867-
streambuf & operator =(const streambuf &other) { m_buffer = other.m_buffer; return *this; }
868-
869-
/// <summary>
870-
/// Move operator.
871-
/// </summary>
872-
/// <param name="other">The source object.</param>
873-
/// <returns>A reference to the <c>streambuf</c> object that contains the result of the assignment.</returns>
874-
streambuf & operator =(streambuf &&other) { m_buffer = std::move(other.m_buffer); return *this; }
875-
876850
/// <summary>
877851
/// Constructs an input stream head for this stream buffer.
878852
/// </summary>

0 commit comments

Comments
 (0)