bool myArray[myVector.size()] = {false};
12345
std::vector<bool> myArray( myVector.size() ) ; // every element == false bool myArray2[1000] = {false}; // every element == false // bool myArray3[myVector.size()] = {false}; // *** error: myVector.size() is not a constexpr