Skip to content

Commit c4a0198

Browse files
committed
work
1 parent 77ab9e9 commit c4a0198

11 files changed

+903
-74
lines changed

compiler/extensions/cpp/runtime/src/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ set(ZSERIO_CPP_RUNTIME_LIB_SRCS
102102
zserio/TypeInfo.h
103103
zserio/TypeInfoUtil.cpp
104104
zserio/TypeInfoUtil.h
105+
zserio/TypeWrappers.h
105106
zserio/Types.h
106107
zserio/UniquePtr.h
107108
zserio/ValidationSqliteUtil.h

compiler/extensions/cpp/runtime/src/zserio/Reflectable.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -3416,21 +3416,21 @@ class BasicReflectableFactory
34163416
return std::allocate_shared<UInt64Reflectable<ALLOC>>(allocator, value);
34173417
}
34183418

3419-
template <typename T, typename std::enable_if<std::is_signed<T>::value, int>::type = 0>
3419+
template <typename T /*TODO Integral<>, typename std::enable_if<std::is_signed<T>::value, int>::type = 0*/>
34203420
static IBasicReflectablePtr<ALLOC> getFixedSignedBitField(
34213421
T value, uint8_t bitSize, const ALLOC& allocator = ALLOC())
34223422
{
34233423
return std::allocate_shared<FixedSignedBitFieldReflectable<ALLOC, T>>(allocator, value, bitSize);
34243424
}
34253425

3426-
template <typename T, typename std::enable_if<std::is_unsigned<T>::value, int>::type = 0>
3426+
template <typename T /*TODO Integral<>, typename std::enable_if<std::is_unsigned<T>::value, int>::type = 0*/>
34273427
static IBasicReflectablePtr<ALLOC> getFixedUnsignedBitField(
34283428
T value, uint8_t bitSize, const ALLOC& allocator = ALLOC())
34293429
{
34303430
return std::allocate_shared<FixedUnsignedBitFieldReflectable<ALLOC, T>>(allocator, value, bitSize);
34313431
}
34323432

3433-
template <typename T, typename std::enable_if<std::is_signed<T>::value, int>::type = 0>
3433+
template <typename T /*TODO Integral<>, typename std::enable_if<std::is_signed<T>::value, int>::type = 0*/>
34343434
static IBasicReflectablePtr<ALLOC> getDynamicSignedBitField(
34353435
T value, uint8_t maxBitSize, uint8_t dynamicBitSize, const ALLOC& allocator = ALLOC())
34363436
{
@@ -3451,7 +3451,7 @@ class BasicReflectableFactory
34513451
return getDynamicSignedBitField(value, maxBitSize, maxBitSize, allocator);
34523452
}
34533453

3454-
template <typename T, typename std::enable_if<std::is_unsigned<T>::value, int>::type = 0>
3454+
template <typename T /*TODO Integral<>, typename std::enable_if<std::is_unsigned<T>::value, int>::type = 0*/>
34553455
static IBasicReflectablePtr<ALLOC> getDynamicUnsignedBitField(
34563456
T value, uint8_t maxBitSize, uint8_t dynamicBitSize, const ALLOC& allocator = ALLOC())
34573457
{

0 commit comments

Comments
 (0)