|
3 | 3 | #include "DataConfig/DcTypes.h" |
4 | 4 | #include "DataConfig/Property/DcPropertyUtils.h" |
5 | 5 | #include "DataConfig/Property/DcPropertyStatesCommon.h" |
| 6 | +#include "DataConfig/Misc/DcTypeUtils.h" |
6 | 7 | #include "Misc/EngineVersionComparison.h" |
7 | 8 |
|
8 | 9 | enum class EDcPropertyReadType |
@@ -399,16 +400,16 @@ struct FDcReadStateOptional : public FDcBaseReadState |
399 | 400 |
|
400 | 401 | void FormatHighlightSegment(TArray<FString>& OutSegments, DcPropertyHighlight::EFormatSeg SegType) override; |
401 | 402 | }; |
402 | | -static_assert(TIsTriviallyDestructible<FDcReadStateOptional>::Value, "need trivial destructible"); |
| 403 | +static_assert(DcTypeUtils::TIsTriviallyDestructible<FDcReadStateOptional>::Value, "need trivial destructible"); |
403 | 404 | #endif // !UE_VERSION_OLDER_THAN(5, 4, 0) |
404 | 405 |
|
405 | 406 | // storage is already POD type, and TArray<> do only bitwise relocate anyway |
406 | 407 | // we'll just needs to assume these types are trivially destructable |
407 | | -static_assert(TIsTriviallyDestructible<FDcReadStateClass>::Value, "need trivial destructible"); |
408 | | -static_assert(TIsTriviallyDestructible<FDcReadStateStruct>::Value, "need trivial destructible"); |
409 | | -static_assert(TIsTriviallyDestructible<FDcReadStateMap>::Value, "need trivial destructible"); |
410 | | -static_assert(TIsTriviallyDestructible<FDcReadStateArray>::Value, "need trivial destructible"); |
411 | | -static_assert(TIsTriviallyDestructible<FDcReadStateSet>::Value, "need trivial destructible"); |
412 | | -static_assert(TIsTriviallyDestructible<FDcReadStateScalar>::Value, "need trivial destructible"); |
| 408 | +static_assert(DcTypeUtils::TIsTriviallyDestructible<FDcReadStateClass>::Value, "need trivial destructible"); |
| 409 | +static_assert(DcTypeUtils::TIsTriviallyDestructible<FDcReadStateStruct>::Value, "need trivial destructible"); |
| 410 | +static_assert(DcTypeUtils::TIsTriviallyDestructible<FDcReadStateMap>::Value, "need trivial destructible"); |
| 411 | +static_assert(DcTypeUtils::TIsTriviallyDestructible<FDcReadStateArray>::Value, "need trivial destructible"); |
| 412 | +static_assert(DcTypeUtils::TIsTriviallyDestructible<FDcReadStateSet>::Value, "need trivial destructible"); |
| 413 | +static_assert(DcTypeUtils::TIsTriviallyDestructible<FDcReadStateScalar>::Value, "need trivial destructible"); |
413 | 414 |
|
414 | 415 |
|
0 commit comments