Untitled


SUBMITTED BY: antoineh1

DATE: May 14, 2016, 9:43 p.m.

FORMAT: Text only

SIZE: 475 Bytes

HITS: 4644

  1. if (!current.empty()){
  2. Dependency * temp = current.back();
  3. if (std::find(this->dependents.begin(), this->dependents.end(), temp) == this->dependents.end()){
  4. this->dependents.push_back(temp); //this is the line the compiler does not like
  5. }
  6. }
  7. std::vector<Dependency *> dependents;
  8. extern std::vector<Dependency *> current;
  9. //this is the definition from the header file. It also resides in a cpp file without extern

comments powered by Disqus