UE5.4.0-preview-1: C2248 'TMemoryWriterBase<TSizedDefaultAllocator<32>>::IndexSize': cannot access private member declared in class 'TMemoryWriterBase<TSizedDefaultAllocator<32>>'

same problem for me ,I solved it by check and update the build setting on my build.target.cs file
make sure use the latest build settings,hope this will help

DefaultBuildSettings = BuildSettingsVersion.Latest;

this will recompile your project and relavent engine modules ,it will take some time,but requires no source code changing

10 Likes