std::vector<bool> features(const Widget& w); ... auto highPriority = features(w)[5]; processWidget(w, highPriority); //whoops, undefined behavior