66
77// SPDX-License-Identifier: BSL-1.0
88
9- // Catch v3.7.1
10- // Generated: 2024-09-17 10:36:45.608896
9+ // Catch v3.8.0
10+ // Generated: 2025-01-06 00:39:54.679994
1111// ----------------------------------------------------------
1212// This file is an amalgamation of multiple different files.
1313// You probably shouldn't edit it directly.
@@ -332,7 +332,7 @@ namespace Catch {
332332 double diff = b - m;
333333 return a + diff * diff;
334334 } ) /
335- ( last - first );
335+ static_cast < double > ( last - first );
336336 return std::sqrt ( variance );
337337 }
338338
@@ -367,7 +367,7 @@ namespace Catch {
367367 double * first,
368368 double * last ) {
369369 auto count = last - first;
370- double idx = ( count - 1 ) * k / static_cast <double >(q);
370+ double idx = static_cast < double >(( count - 1 ) * k) / static_cast <double >(q);
371371 int j = static_cast <int >(idx);
372372 double g = idx - j;
373373 std::nth_element (first, first + j, last);
@@ -470,10 +470,10 @@ namespace Catch {
470470
471471 double accel = sum_cubes / ( 6 * std::pow ( sum_squares, 1.5 ) );
472472 long n = static_cast <long >( resample.size () );
473- double prob_n =
473+ double prob_n = static_cast < double >(
474474 std::count_if ( resample.begin (),
475475 resample.end (),
476- [point]( double x ) { return x < point; } ) /
476+ [point]( double x ) { return x < point; } )) /
477477 static_cast <double >( n );
478478 // degenerate case with uniform samples
479479 if ( Catch::Detail::directCompare ( prob_n, 0 . ) ) {
@@ -1926,7 +1926,7 @@ namespace Catch {
19261926 return static_cast <unsigned int >(getElapsedMicroseconds ()/1000 );
19271927 }
19281928 auto Timer::getElapsedSeconds () const -> double {
1929- return getElapsedMicroseconds ()/1000000.0 ;
1929+ return static_cast < double >( getElapsedMicroseconds () )/1000000.0 ;
19301930 }
19311931
19321932
@@ -1946,7 +1946,10 @@ namespace Detail {
19461946 const int hexThreshold = 255 ;
19471947
19481948 struct Endianness {
1949- enum Arch { Big, Little };
1949+ enum Arch : uint8_t {
1950+ Big,
1951+ Little
1952+ };
19501953
19511954 static Arch which () {
19521955 int one = 1 ;
@@ -2280,7 +2283,7 @@ namespace Catch {
22802283 }
22812284
22822285 Version const & libraryVersion () {
2283- static Version version ( 3 , 7 , 1 , " " , 0 );
2286+ static Version version ( 3 , 8 , 0 , " " , 0 );
22842287 return version;
22852288 }
22862289
@@ -3516,7 +3519,7 @@ namespace {
35163519#endif // Windows/ ANSI/ None
35173520
35183521
3519- #if defined( CATCH_PLATFORM_LINUX ) || defined( CATCH_PLATFORM_MAC )
3522+ #if defined( CATCH_PLATFORM_LINUX ) || defined( CATCH_PLATFORM_MAC ) || defined( __GLIBC__ )
35203523# define CATCH_INTERNAL_HAS_ISATTY
35213524# include < unistd.h>
35223525#endif
@@ -5258,7 +5261,7 @@ namespace {
52585261 SimplePcg32::result_type SimplePcg32::operator ()() {
52595262 // prepare the output value
52605263 const uint32_t xorshifted = static_cast <uint32_t >(((m_state >> 18u ) ^ m_state) >> 27u );
5261- const auto output = rotate_right (xorshifted, m_state >> 59u );
5264+ const auto output = rotate_right (xorshifted, static_cast < uint32_t >( m_state >> 59u ) );
52625265
52635266 // advance state
52645267 m_state = m_state * 6364136223846793005ULL + s_inc;
@@ -9108,7 +9111,7 @@ struct RowBreak {};
91089111struct OutputFlush {};
91099112
91109113class Duration {
9111- enum class Unit {
9114+ enum class Unit : uint8_t {
91129115 Auto,
91139116 Nanoseconds,
91149117 Microseconds,
@@ -9180,7 +9183,10 @@ class Duration {
91809183};
91819184} // end anon namespace
91829185
9183- enum class Justification { Left, Right };
9186+ enum class Justification : uint8_t {
9187+ Left,
9188+ Right
9189+ };
91849190
91859191struct ColumnInfo {
91869192 std::string name;
0 commit comments