Commit f1a56c7d authored by Stefan Philips's avatar Stefan Philips

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

constructor
parent eb2d101b
...@@ -69,13 +69,6 @@ public: ...@@ -69,13 +69,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.
* *
...@@ -241,13 +234,6 @@ WInterval< T >::WInterval( const StoreType& c ) ...@@ -241,13 +234,6 @@ WInterval< T >::WInterval( const StoreType& c )
m_interval.second = std::min( c.first, c.second ); m_interval.second = std::min( c.first, c.second );
} }
template < typename T >
WInterval< T >::WInterval( const Type& c ):
m_interval( c.m_interval )
{
// nothing else to do
}
template < typename T > 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