Skip to content

Commit 3e0e4b6

Browse files
Merge pull request #261 from dfm-anthropic:default-constructor
PiperOrigin-RevId: 839837531 Change-Id: I104b959c491a8ae86abd16a072a305bc91856b74
2 parents 89828f9 + b0f0e11 commit 3e0e4b6

File tree

4 files changed

+4
-14
lines changed

4 files changed

+4
-14
lines changed

tensorstore/util/bfloat16.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ float Bfloat16ToFloat(BFloat16 v);
7979
/// \ingroup Data types
8080
class BFloat16 {
8181
public:
82-
/// Zero initialization.
83-
///
84-
/// \id zero
85-
constexpr BFloat16() : rep_(0) {}
82+
BFloat16() = default;
8683

8784
/// Possibly lossy conversion from any type convertible to `float`.
8885
///

tensorstore/util/float8.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ class Float8Base {
8585

8686
public:
8787
static constexpr int kBits = 8;
88-
89-
constexpr Float8Base() : rep_(0) {}
88+
Float8Base() = default;
9089

9190
template <typename T>
9291
explicit Float8Base(T i,

tensorstore/util/int2.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ constexpr int8_t SignedTrunc2(int8_t x) {
4848
/// \ingroup Data types
4949
class Int2Padded {
5050
public:
51-
/// Zero initialization.
52-
///
53-
/// \id zero
54-
constexpr Int2Padded() : rep_(0) {}
51+
Int2Padded() = default;
5552

5653
/// Possibly lossy conversion from any type convertible to `int8_t`.
5754
///

tensorstore/util/int4.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ constexpr int8_t SignedTrunc4(int8_t x) {
4949
/// \ingroup Data types
5050
class Int4Padded {
5151
public:
52-
/// Zero initialization.
53-
///
54-
/// \id zero
55-
constexpr Int4Padded() : rep_(0) {}
52+
Int4Padded() = default;
5653

5754
/// Possibly lossy conversion from any type convertible to `int8_t`.
5855
///

0 commit comments

Comments
 (0)