6
6
7
7
// SPDX-License-Identifier: BSL-1.0
8
8
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
11
11
// ----------------------------------------------------------
12
12
// This file is an amalgamation of multiple different files.
13
13
// You probably shouldn't edit it directly.
@@ -332,7 +332,7 @@ namespace Catch {
332
332
double diff = b - m;
333
333
return a + diff * diff;
334
334
} ) /
335
- ( last - first );
335
+ static_cast < double > ( last - first );
336
336
return std::sqrt ( variance );
337
337
}
338
338
@@ -367,7 +367,7 @@ namespace Catch {
367
367
double * first,
368
368
double * last ) {
369
369
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);
371
371
int j = static_cast <int >(idx);
372
372
double g = idx - j;
373
373
std::nth_element (first, first + j, last);
@@ -470,10 +470,10 @@ namespace Catch {
470
470
471
471
double accel = sum_cubes / ( 6 * std::pow ( sum_squares, 1.5 ) );
472
472
long n = static_cast <long >( resample.size () );
473
- double prob_n =
473
+ double prob_n = static_cast < double >(
474
474
std::count_if ( resample.begin (),
475
475
resample.end (),
476
- [point]( double x ) { return x < point; } ) /
476
+ [point]( double x ) { return x < point; } )) /
477
477
static_cast <double >( n );
478
478
// degenerate case with uniform samples
479
479
if ( Catch::Detail::directCompare ( prob_n, 0 . ) ) {
@@ -1926,7 +1926,7 @@ namespace Catch {
1926
1926
return static_cast <unsigned int >(getElapsedMicroseconds ()/1000 );
1927
1927
}
1928
1928
auto Timer::getElapsedSeconds () const -> double {
1929
- return getElapsedMicroseconds ()/1000000.0 ;
1929
+ return static_cast < double >( getElapsedMicroseconds () )/1000000.0 ;
1930
1930
}
1931
1931
1932
1932
@@ -1946,7 +1946,10 @@ namespace Detail {
1946
1946
const int hexThreshold = 255 ;
1947
1947
1948
1948
struct Endianness {
1949
- enum Arch { Big, Little };
1949
+ enum Arch : uint8_t {
1950
+ Big,
1951
+ Little
1952
+ };
1950
1953
1951
1954
static Arch which () {
1952
1955
int one = 1 ;
@@ -2280,7 +2283,7 @@ namespace Catch {
2280
2283
}
2281
2284
2282
2285
Version const & libraryVersion () {
2283
- static Version version ( 3 , 7 , 1 , " " , 0 );
2286
+ static Version version ( 3 , 8 , 0 , " " , 0 );
2284
2287
return version;
2285
2288
}
2286
2289
@@ -3516,7 +3519,7 @@ namespace {
3516
3519
#endif // Windows/ ANSI/ None
3517
3520
3518
3521
3519
- #if defined( CATCH_PLATFORM_LINUX ) || defined( CATCH_PLATFORM_MAC )
3522
+ #if defined( CATCH_PLATFORM_LINUX ) || defined( CATCH_PLATFORM_MAC ) || defined( __GLIBC__ )
3520
3523
# define CATCH_INTERNAL_HAS_ISATTY
3521
3524
# include < unistd.h>
3522
3525
#endif
@@ -5258,7 +5261,7 @@ namespace {
5258
5261
SimplePcg32::result_type SimplePcg32::operator ()() {
5259
5262
// prepare the output value
5260
5263
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 ) );
5262
5265
5263
5266
// advance state
5264
5267
m_state = m_state * 6364136223846793005ULL + s_inc;
@@ -9108,7 +9111,7 @@ struct RowBreak {};
9108
9111
struct OutputFlush {};
9109
9112
9110
9113
class Duration {
9111
- enum class Unit {
9114
+ enum class Unit : uint8_t {
9112
9115
Auto,
9113
9116
Nanoseconds,
9114
9117
Microseconds,
@@ -9180,7 +9183,10 @@ class Duration {
9180
9183
};
9181
9184
} // end anon namespace
9182
9185
9183
- enum class Justification { Left, Right };
9186
+ enum class Justification : uint8_t {
9187
+ Left,
9188
+ Right
9189
+ };
9184
9190
9185
9191
struct ColumnInfo {
9186
9192
std::string name;
0 commit comments