zonetool icon indicating copy to clipboard operation
zonetool copied to clipboard

[BUG] Use of std::allocate::destroy is depreciated.

Open inversederivative opened this issue 3 years ago • 0 comments

Describe the bug As I've tried to build this project in Rider, Visual Studio 2022, and Visual Studio 2019, I was ultimately unable to compile, even if I selected C++ 11, not sure why, but the point is, the JSON file includes depreciated code, and should therefore be maintained. I'm working on a solution, as I've forked, and I'd like to be using the newest version of nlohmann's json package anyway.

This project features version 2.0.5, however nlohmann is already up to version 3.10.5. His new version addresses this depreciated bug, and so it shouldn't be too difficult to incorporate.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'src\ZoneUtils\Json.hpp'
  2. Browse to line (for example) 2168 'alloc.destroy(m_value.object);'

Expected behavior The project should build with modern tools.

Screenshots image

General information:

  • OS: Windows 11
  • Version: 10.0.22000 Build 22000
  • Linker: (ALL)

Additional context I'd also like to participate in the discord, but the links are all dead... Any help?

inversederivative avatar Jul 15 '22 21:07 inversederivative