DTC
This commit is contained in:
@@ -38,4 +38,11 @@ static constexpr __always_inline void io_class__update_with(T& dst, const T& src
|
||||
const_cast<volatile DST_VALUE&>(dst.raw_value) = src.raw_value;
|
||||
}
|
||||
|
||||
template<typename T, typename U>
|
||||
static constexpr __always_inline void io_class__update_with(T& dst, const U& src) {
|
||||
typedef decltype(dst.raw_value) DST_VALUE;
|
||||
|
||||
const_cast<volatile DST_VALUE&>(dst.raw_value) = src;
|
||||
}
|
||||
|
||||
#endif //!__JABYENGINE_IO_CLASS_HELPER_HPP__
|
Reference in New Issue
Block a user