Commit f1a56c7d by Stefan Philips

[FIX] Remove rule-of-three-violation by removing unnecessary copy

constructor
parent eb2d101b
...@@ -70,13 +70,6 @@ public: ...@@ -70,13 +70,6 @@ public:
explicit WInterval( const StoreType& c ); explicit WInterval( const StoreType& c );
/** /**
* Copy constructor.
*
* \param c the interval to copy
*/
WInterval( const Type& c ); // NOLINT
/**
* Create a new interval instance using the given values. * Create a new interval instance using the given values.
* *
* \param l the lower border * \param l the lower border
...@@ -242,13 +235,6 @@ WInterval< T >::WInterval( const StoreType& c ) ...@@ -242,13 +235,6 @@ WInterval< T >::WInterval( const StoreType& c )
} }
template < typename T > template < typename T >
WInterval< T >::WInterval( const Type& c ):
m_interval( c.m_interval )
{
// nothing else to do
}
template < typename T >
WInterval< T >::WInterval( const T& l, const T& u ): WInterval< T >::WInterval( const T& l, const T& u ):
m_interval( std::min( l, u ), std::max( l, u ) ) m_interval( std::min( l, u ), std::max( l, u ) )
{ {
......
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