Skip to main content
Post Locked by Cody Gray
Notice added Historical significance by Cody Gray
Copy edited.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

What C++ pitfalls should I avoid  ?

I remember first learning about vectors in the STL and after some time, I wanted to use a vector of bools for one of my projects. AfterAfter seeing some strange behavior and doing some research, I learned that a vector of bools is not really a vector of bools.

Anyone outAre there have any other common pitfalls to avoid in C++?

What C++ pitfalls should I avoid  ?

I remember first learning about vectors in the STL and after some time, I wanted to use a vector of bools for one of my projects. After seeing some strange behavior and doing some research, I learned that a vector of bools is not really a vector of bools.

Anyone out there have any other common pitfalls to avoid in C++?

What C++ pitfalls should I avoid?

I remember first learning about vectors in the STL and after some time, I wanted to use a vector of bools for one of my projects. After seeing some strange behavior and doing some research, I learned that a vector of bools is not really a vector of bools.

Are there any other common pitfalls to avoid in C++?

edited tags
Link
casperOne
  • 74.7k
  • 19
  • 189
  • 262
Post Closed as "not a real question" by Shog9
Post Made Community Wiki by Bill the Lizard
edited tags
Link
Bill the Lizard
  • 407.3k
  • 213
  • 579
  • 892
edited title
Link
David
  • 14.1k
  • 25
  • 85
  • 102
Loading
Source Link
Craig H
  • 8k
  • 16
  • 52
  • 61
Loading