i was trying to create a deque, and when the function that resizes the array is excuted, it crashes with the error from the title, and when i delete the deallocate() it stops happening, what im doing wrong? code: https://pastebin.com/0yHHcLnj

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 1 point 2 years ago (1 child)

dont worry, i have one more question, i should initialize variables with = or with {}?

  • source
  • parent
  • hideshow 2 child comments