Crash for no reason | C++

Clear your project cache

  • intermediate folder
  • derived data cache
  • binaries
  • .vs
    .vsconfig
    you sln file
    and regenerate your project. You must have some bad cache causing errors. The code I sent works