Failure to create a new project: "cannot access private member declared in class 'FHazardPointerCollection::FHazardRecord'"

Just to wrap up this thread you have three options. I would do them in this order if you can.

Option 1: Rollback to 17.8.x in Visual Studio
How To:

Downsides:

  • If you did not install 17.8 you cannot roll back to it.

Option 2: Update to Preview Version
How To:
Same as above but select “Update” Settings and select Preview instead of current.

Downsides:

  • Previews can be less stable so it may have conflicts with your particular project. (This is unlikely though)

Option 3: Make the FHazard Variable Public

How To:
See frankmli’s suggestion above

Downsides:

  • If you do a lot of .cpp surrounding that you may write code that relies on it being public that is not supported.
  • It requires an engine change and rebuild of the engine for your team.
7 Likes