#ifndef TARGET_H_
#define TARGET_H_
-#include <list>
#include <map>
#include <set>
#include <string>
+#include <vector>
#include <sigc++/signal.h>
#include <msp/time/timestamp.h>
class Target
{
public:
- using Dependencies = std::list<Target *>;
+ using Dependencies = std::vector<Target *>;
protected:
enum State
Tool *tool;
State state;
std::string rebuild_reason;
- std::list<std::string> problems;
+ std::vector<std::string> problems;
Dependencies depends;
Dependencies trans_depends;
public:
bool is_broken() const { return state==BROKEN; }
- const std::list<std::string> &get_problems() const { return problems; }
+ const std::vector<std::string> &get_problems() const { return problems; }
/** Prepares the target by finding dependencies, recursively preparing them
and then checking whether rebuilding is needed. */