I suggest changing this to
```
  static const std::vector<unsigned> vetoPatterns = { 5, 7, 9, 10,11,13,14,15};
    vetoPatterns.push_back(5);
    vetoPatterns.push_back(7);
    vetoPatterns.push_back(9);
    vetoPatterns.push_back(10);
    vetoPatterns.push_back(11);
    vetoPatterns.push_back(13);
    vetoPatterns.push_back(14);
    vetoPatterns.push_back(15);
  };
```
Where you actually move the declaration of ```vetoPatterns``` to be just before the function which uses it. This will make it a file scope static which the compiler can create and initialize outside the body of the function.