66
77// SPDX-License-Identifier: BSL-1.0
88
9- // Catch v3.5.1
10- // Generated: 2023-12-31 15:10:55.864983
9+ // Catch v3.5.2
10+ // Generated: 2024-01-15 14:06:36.675713
1111// ----------------------------------------------------------
1212// This file is an amalgamation of multiple different files.
1313// You probably shouldn't edit it directly.
@@ -187,21 +187,16 @@ namespace Catch {
187187 double const * last,
188188 Estimator& estimator ) {
189189 auto n = static_cast <size_t >( last - first );
190- std::uniform_int_distribution<decltype ( n )> dist ( 0 ,
191- n - 1 );
190+ std::uniform_int_distribution<size_t > dist ( 0 , n - 1 );
192191
193192 sample out;
194193 out.reserve ( resamples );
195- // We allocate the vector outside the loop to avoid realloc
196- // per resample
197194 std::vector<double > resampled;
198195 resampled.reserve ( n );
199196 for ( size_t i = 0 ; i < resamples; ++i ) {
200197 resampled.clear ();
201198 for ( size_t s = 0 ; s < n; ++s ) {
202- resampled.push_back (
203- first[static_cast <std::ptrdiff_t >(
204- dist ( rng ) )] );
199+ resampled.push_back ( first[dist ( rng )] );
205200 }
206201 const auto estimate =
207202 estimator ( resampled.data (), resampled.data () + resampled.size () );
@@ -2273,7 +2268,7 @@ namespace Catch {
22732268 }
22742269
22752270 Version const & libraryVersion () {
2276- static Version version ( 3 , 5 , 1 , " " , 0 );
2271+ static Version version ( 3 , 5 , 2 , " " , 0 );
22772272 return version;
22782273 }
22792274
@@ -4380,7 +4375,6 @@ namespace Detail {
43804375 CATCH_ENFORCE ( !m_ofs.fail (), " Unable to open file: '" << filename << ' \' ' );
43814376 m_ofs << std::unitbuf;
43824377 }
4383- ~FileStream () override = default ;
43844378 public: // IStream
43854379 std::ostream& stream () override {
43864380 return m_ofs;
@@ -4395,7 +4389,6 @@ namespace Detail {
43954389 // Store the streambuf from cout up-front because
43964390 // cout may get redirected when running tests
43974391 CoutStream () : m_os( Catch::cout().rdbuf() ) {}
4398- ~CoutStream () override = default ;
43994392
44004393 public: // IStream
44014394 std::ostream& stream () override { return m_os; }
@@ -4409,7 +4402,6 @@ namespace Detail {
44094402 // Store the streambuf from cerr up-front because
44104403 // cout may get redirected when running tests
44114404 CerrStream (): m_os( Catch::cerr().rdbuf() ) {}
4412- ~CerrStream () override = default ;
44134405
44144406 public: // IStream
44154407 std::ostream& stream () override { return m_os; }
@@ -4427,8 +4419,6 @@ namespace Detail {
44274419 m_os ( m_streamBuf.get() )
44284420 {}
44294421
4430- ~DebugOutStream () override = default ;
4431-
44324422 public: // IStream
44334423 std::ostream& stream () override { return m_os; }
44344424 };
@@ -5441,7 +5431,6 @@ namespace Catch {
54415431 TrackerContext& ctx,
54425432 ITracker* parent ):
54435433 TrackerBase ( CATCH_MOVE( nameAndLocation ), ctx, parent ) {}
5444- ~GeneratorTracker () override = default ;
54455434
54465435 static GeneratorTracker*
54475436 acquire ( TrackerContext& ctx,
@@ -8799,13 +8788,6 @@ findMax( std::size_t& i, std::size_t& j, std::size_t& k, std::size_t& l ) {
87998788 return l;
88008789}
88018790
8802- enum class Justification { Left, Right };
8803-
8804- struct ColumnInfo {
8805- std::string name;
8806- std::size_t width;
8807- Justification justification;
8808- };
88098791struct ColumnBreak {};
88108792struct RowBreak {};
88118793struct OutputFlush {};
@@ -8883,6 +8865,14 @@ class Duration {
88838865};
88848866} // end anon namespace
88858867
8868+ enum class Justification { Left, Right };
8869+
8870+ struct ColumnInfo {
8871+ std::string name;
8872+ std::size_t width;
8873+ Justification justification;
8874+ };
8875+
88868876class TablePrinter {
88878877 std::ostream& m_os;
88888878 std::vector<ColumnInfo> m_columnInfos;
0 commit comments