Skip to content

Commit d75c13a

Browse files
committed
fixup! is_same->same_as
1 parent 9c625d2 commit d75c13a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Framework/Core/include/Framework/Expressions.h

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,20 @@ struct LiteralStorage {
7878

7979
using LiteralValue = LiteralStorage<int, bool, float, double, uint8_t, int64_t, int16_t, uint16_t, int8_t, uint32_t, uint64_t>;
8080

81+
template <typename T>
82+
constexpr auto selectArrowType()
83+
{
84+
return atype::NA;
85+
}
86+
8187
#define SELECT_ARROW_TYPE(_Ctype_, _Atype_) \
82-
template <_Ctype_ T> \
83-
constexpr auto selectArrowType() \
84-
{ \
85-
return atype::_Atype_; \
86-
}
88+
template <typename T> \
89+
requires std::same_as<T, _Ctype_> \
90+
constexpr auto selectArrowType() \
91+
{ \
92+
return atype::_Atype_; \
93+
}
8794

88-
SELECT_ARROW_TYPE(typename, NA);
8995
SELECT_ARROW_TYPE(bool, BOOL);
9096
SELECT_ARROW_TYPE(float, FLOAT);
9197
SELECT_ARROW_TYPE(double, DOUBLE);

0 commit comments

Comments
 (0)