I just downloaded and compiled the new UE5.4.0-preview-1 and upgraded one of my 5.3.2 projects.
I now get some errors from BufferArchive.h that I have never seen before.
I did not change anything to my code or the Engine code.
This was all working fine with UE5.3.2.
Here are the errors:
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\BufferArchive.h(17): error C2248: 'TMemoryWriterBase<TSizedDefaultAllocator<32>>::IndexSize': cannot access private member declared in class 'TMemoryWriterBase<TSizedDefaultAllocator<32>>'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\MemoryWriter.h(23): note: see declaration of 'TMemoryWriterBase<TSizedDefaultAllocator<32>>::IndexSize'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\MemoryWriter.h(94): note: see declaration of 'TMemoryWriterBase<TSizedDefaultAllocator<32>>'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\BufferArchive.h(48): note: see reference to class template instantiation 'TBufferArchive<32>' being compiled
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\BufferArchive.h(17): error C2338: static_assert failed: 'Only 32-bit and 64-bit index sizes supported'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\BufferArchive.h(20): error C2248: 'TMemoryWriterBase<TSizedDefaultAllocator<32>>::IndexSize': cannot access private member declared in class 'TMemoryWriterBase<TSizedDefaultAllocator<32>>'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\MemoryWriter.h(23): note: see declaration of 'TMemoryWriterBase<TSizedDefaultAllocator<32>>::IndexSize'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\MemoryWriter.h(94): note: see declaration of 'TMemoryWriterBase<TSizedDefaultAllocator<32>>'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\BufferArchive.h(17): error C2248: 'TMemoryWriterBase<TSizedDefaultAllocator<64>>::IndexSize': cannot access private member declared in class 'TMemoryWriterBase<TSizedDefaultAllocator<64>>'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\MemoryWriter.h(23): note: see declaration of 'TMemoryWriterBase<TSizedDefaultAllocator<64>>::IndexSize'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\MemoryWriter.h(94): note: see declaration of 'TMemoryWriterBase<TSizedDefaultAllocator<64>>'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\BufferArchive.h(56): note: see reference to class template instantiation 'TBufferArchive<64>' being compiled
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\BufferArchive.h(20): error C2248: 'TMemoryWriterBase<TSizedDefaultAllocator<64>>::IndexSize': cannot access private member declared in class 'TMemoryWriterBase<TSizedDefaultAllocator<64>>'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\MemoryWriter.h(23): note: see declaration of 'TMemoryWriterBase<TSizedDefaultAllocator<64>>::IndexSize'
12>E:\UE\UnrealEngine5.4.0\Engine\Source\Runtime\Core\Public\Serialization\MemoryWriter.h(94): note: see declaration of 'TMemoryWriterBase<TSizedDefaultAllocator<64>>'
Any clue what’s causing this?
Win 11, VS 2022
Thanks so much,
Sebastian