mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 04:07:10 +01:00 
			
		
		
		
	Move templates around to avoid linkage errors when CATCH_CONFIG_MAIN isn't defined
This commit is contained in:
		| @@ -79,9 +79,15 @@ namespace Catch { | ||||
|         ResultBuilder& setResultType( ResultWas::OfType result ); | ||||
|         ResultBuilder& setResultType( bool result ); | ||||
|         template <typename T> | ||||
|         ResultBuilder& setLhs( T const& lhs ); | ||||
|         ResultBuilder& setLhs( T const& lhs ) { | ||||
|             m_exprComponents.lhs = new AnyTypeHolder<T>( lhs ); | ||||
|             return *this; | ||||
|         } | ||||
|         template <typename T> | ||||
|         ResultBuilder& setRhs( T const& rhs ); | ||||
|         ResultBuilder& setRhs( T const& rhs ) { | ||||
|             m_exprComponents.rhs = new AnyTypeHolder<T>( rhs ); | ||||
|             return *this; | ||||
|         } | ||||
|         ResultBuilder& setOp( std::string const& op ); | ||||
|  | ||||
|         void endExpression(); | ||||
|   | ||||
| @@ -41,16 +41,6 @@ namespace Catch { | ||||
|         m_data.resultType = result ? ResultWas::Ok : ResultWas::ExpressionFailed; | ||||
|         return *this; | ||||
|     } | ||||
|     template <typename T> | ||||
|     ResultBuilder& ResultBuilder::setLhs( T const& lhs ) { | ||||
|         m_exprComponents.lhs = new AnyTypeHolder<T>( lhs ); | ||||
|         return *this; | ||||
|     } | ||||
|     template <typename T> | ||||
|     ResultBuilder& ResultBuilder::setRhs( T const& rhs ) { | ||||
|         m_exprComponents.rhs = new AnyTypeHolder<T>( rhs ); | ||||
|         return *this; | ||||
|     } | ||||
|     ResultBuilder& ResultBuilder::setOp( std::string const& op ) { | ||||
|         m_exprComponents.op = op; | ||||
|         return *this; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ryan Gonzalez
					Ryan Gonzalez