mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
Fix indentation of rangeToString in tostring.h
This commit is contained in:
parent
f5ccf98c59
commit
b0c88a3d96
@ -262,19 +262,19 @@ std::string toString( T const& value ) {
|
||||
}
|
||||
|
||||
|
||||
namespace Detail {
|
||||
template<typename InputIterator>
|
||||
std::string rangeToString( InputIterator first, InputIterator last ) {
|
||||
std::ostringstream oss;
|
||||
oss << "{ ";
|
||||
if( first != last ) {
|
||||
oss << Catch::toString( *first );
|
||||
for( ++first ; first != last ; ++first )
|
||||
oss << ", " << Catch::toString( *first );
|
||||
}
|
||||
oss << " }";
|
||||
return oss.str();
|
||||
namespace Detail {
|
||||
template<typename InputIterator>
|
||||
std::string rangeToString( InputIterator first, InputIterator last ) {
|
||||
std::ostringstream oss;
|
||||
oss << "{ ";
|
||||
if( first != last ) {
|
||||
oss << Catch::toString( *first );
|
||||
while( ++first != last )
|
||||
oss << ", " << Catch::toString( *first );
|
||||
}
|
||||
oss << " }";
|
||||
return oss.str();
|
||||
}
|
||||
}
|
||||
|
||||
} // end namespace Catch
|
||||
|
Loading…
Reference in New Issue
Block a user