File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ struct NumericUstringConvertDataType {
290
290
291
291
} // namespace internal_data_type
292
292
293
- #define TENSORSTORE_INTERNAL_CONVERT_INT (T ) \
293
+ #define TENSORSTORE_INTERNAL_CONVERT_INT (T, ...) \
294
294
template <> \
295
295
struct ConvertDataType <::tensorstore::dtypes::T, \
296
296
::tensorstore::dtypes::string_t > \
@@ -305,7 +305,7 @@ struct NumericUstringConvertDataType {
305
305
: public internal_data_type::JsonIntegerConvertDataType {}; \
306
306
/* */
307
307
308
- #define TENSORSTORE_INTERNAL_CONVERT_FLOAT (T ) \
308
+ #define TENSORSTORE_INTERNAL_CONVERT_FLOAT (T, ...) \
309
309
template <> \
310
310
struct ConvertDataType <::tensorstore::dtypes::T, \
311
311
::tensorstore::dtypes::string_t > \
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ using ::tensorstore::internal::GetElementCopyErrorStatus;
49
49
using ::tensorstore::internal::IterationBufferKind;
50
50
using ::tensorstore::internal::IterationBufferPointer;
51
51
52
- #define X (T ) \
52
+ #define X (T, ...) \
53
53
using ::tensorstore::dtypes::T; \
54
54
/* */
55
55
TENSORSTORE_FOR_EACH_DATA_TYPE (X)
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ using ::tensorstore::internal::IterationBufferPointer;
54
54
using ::tensorstore::serialization::SerializationRoundTrip;
55
55
using ::tensorstore::serialization::TestSerializationRoundTrip;
56
56
57
- #define X (T ) \
57
+ #define X (T, ...) \
58
58
using ::tensorstore::dtypes::T; \
59
59
static_assert (static_cast <int >(DataTypeId::T) >= 0 && \
60
60
static_cast <int >(DataTypeId::T) < \
@@ -90,7 +90,7 @@ static_assert(IsElementType<int (ClassT::*)(int)>);
90
90
91
91
TEST (ElementOperationsTest, DataTypeIdOrder) {
92
92
int i = 0 ;
93
- #define X (T ) EXPECT_EQ(i++, static_cast <int >(DataTypeId::T));
93
+ #define X (T, ... ) EXPECT_EQ(i++, static_cast <int >(DataTypeId::T));
94
94
TENSORSTORE_FOR_EACH_DATA_TYPE (X)
95
95
#undef X
96
96
}
You can’t perform that action at this time.
0 commit comments