mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Add missing noexcept in move constructors
Because both copy and move operations are trivial, this doesn't actually change anything, but it silences a static analysis warning.
This commit is contained in:
		| @@ -52,10 +52,10 @@ namespace Catch { | |||||||
|             line( _line ) |             line( _line ) | ||||||
|         {} |         {} | ||||||
|  |  | ||||||
|         SourceLineInfo( SourceLineInfo const& other )        = default; |         SourceLineInfo( SourceLineInfo const& other )            = default; | ||||||
|         SourceLineInfo( SourceLineInfo && )                  = default; |         SourceLineInfo& operator = ( SourceLineInfo const& )     = default; | ||||||
|         SourceLineInfo& operator = ( SourceLineInfo const& ) = default; |         SourceLineInfo( SourceLineInfo&& )              noexcept = default; | ||||||
|         SourceLineInfo& operator = ( SourceLineInfo && )     = default; |         SourceLineInfo& operator = ( SourceLineInfo&& ) noexcept = default; | ||||||
|  |  | ||||||
|         bool empty() const noexcept; |         bool empty() const noexcept; | ||||||
|         bool operator == ( SourceLineInfo const& other ) const noexcept; |         bool operator == ( SourceLineInfo const& other ) const noexcept; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský