| 1772 | namespace Detail { |
| 1773 | template<typename InputIterator> |
| 1774 | std::string rangeToString( InputIterator first, InputIterator last ) { |
| 1775 | std::ostringstream oss; |
| 1776 | oss << "{ "; |
| 1777 | if( first != last ) { |
| 1778 | oss << Catch::toString( *first ); |
| 1779 | for( ++first ; first != last ; ++first ) |
| 1780 | oss << ", " << Catch::toString( *first ); |
| 1781 | } |
| 1782 | oss << " }"; |
| 1783 | return oss.str(); |
| 1784 | } |
| 1785 | } |
| 1786 | |
| 1787 | } // end namespace Catch |