Skip to content

Commit af3b9d4

Browse files
authored
Restore impl of DerivedRecordSize in RDAT (#4842)
This default method implementation is necessary for the base->derived size version mechanism to work. This is only specialized when a base has a derived, and it relies on the newest version to use the default implementation (no specialization). The implementation was removed in commit 8ee6ed1.
1 parent 6caeb26 commit af3b9d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/dxc/DxilContainer/DxilRuntimeReflection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class RecordTraits {
249249
// RecordSize() is defined in order to allow for use of forward decl type in RecordRef
250250
static constexpr size_t RecordSize() { return sizeof(_T); }
251251
static constexpr size_t MaxRecordSize() { return RecordTraits<_T>::DerivedRecordSize(); }
252-
static constexpr size_t DerivedRecordSize();
252+
static constexpr size_t DerivedRecordSize() { return sizeof(_T); }
253253
};
254254

255255
///////////////////////////////////////

0 commit comments

Comments
 (0)