Skip to content
  • Kenneth Moreland's avatar
    Fix issue of getting pointer from std::vector of size 0 · 66a4a23e
    Kenneth Moreland authored
    C++11 introduced the `std::vector::data()` method. In addition to being
    more syntatically pleasing, it should correctly handle the condition
    when the `std::vector` is size 0 and therefore has no real pointer.
    (Expressions like `&v[0]` are undefined when the `vector` is empty.)
    66a4a23e