| 2608 | }; |
| 2609 | |
| 2610 | class Capturer { |
| 2611 | std::vector<MessageInfo> m_messages; |
| 2612 | IResultCapture& m_resultCapture = getResultCapture(); |
| 2613 | size_t m_captured = 0; |
| 2614 | public: |
| 2615 | Capturer( StringRef macroName, SourceLineInfo const& lineInfo, ResultWas::OfType resultType, StringRef names ); |
| 2616 | ~Capturer(); |
| 2617 | |
| 2618 | void captureValue( size_t index, std::string const& value ); |
| 2619 | |
| 2620 | template<typename T> |
| 2621 | void captureValues( size_t index, T const& value ) { |
| 2622 | captureValue( index, Catch::Detail::stringify( value ) ); |
| 2623 | } |
| 2624 | |
| 2625 | template<typename T, typename... Ts> |
| 2626 | void captureValues( size_t index, T const& value, Ts const&... values ) { |
| 2627 | captureValue( index, Catch::Detail::stringify(value) ); |
| 2628 | captureValues( index+1, values... ); |
| 2629 | } |
| 2630 | }; |
| 2631 | |
| 2632 | } // end namespace Catch |
| 2633 |
nothing calls this directly
no outgoing calls
no test coverage detected