<div dir="ltr"><div>I'm trying to make a string set that has a flag to become the universal set, and figured StringSet might be a good starting point</div><div><br></div><div>struct Selection : StringSet<> {</div><div>  bool all;</div><div><br></div><div>  Selection(const Selection &selection)</div><div>      : StringSet<>(selection), all(selection.all) {}</div><div><br></div><div>  Selection(bool all) : all(all) {}</div><div><br></div><div>  size_t count(const string &s) const {</div><div>    if (all)</div><div>      return true;</div><div>    return StringSet<>::count(s);</div><div>  }</div><div>};</div><div><br></div><div>But I get an error when trying to compile</div><div><br></div><div><div>error C2280: 'llvm::StringSet<llvm::MallocAllocator>::StringSet(const llvm::StringSet<llvm::MallocAllocator> &)': attempting to reference a deleted function</div><div>\llvm\include\llvm/ADT/StringSet.h(31): note: compiler has generated 'llvm::StringSet<llvm::MallocAllocator>::StringSet' here</div></div><div><br></div><div>The indicated line is on my constructor declaration - is this not the right way to copy a StringSet?<br></div></div>