mardi 27 décembre 2016

Get size of std::array without an instance

Given this struct:

struct Foo {
  std::array<int, 8> bar;
}

How can I get the size of the bar array if I don't have an instance of Foo?

Aucun commentaire:

Enregistrer un commentaire