When i'm compiling main.cpp i've got these kind of error:
prod_cons.hpp:26:8: note: ‘pile_params::pile_params(const pile_params&)’ is implicitly deleted because the default definition would be ill-formed: struct pile_params{
main.cpp
pile_params pile_analyse(url_racine);
pile_params pile_telechargement(url_racine);
vector_params vect_all_pages();
vector<thread> threads_analyse;
vector<thread> threads_telechargement;
for(int i=0; i<nb_th_get;i++){
threads_telechargement[i] = thread(telecharger,pile_telechargement,pile_analyse,vect_all_pages);
}
for(int i=0; i<nb_th_analyse;i++){
threads_telechargement[i] = thread(analyser,profondeur,pile_telechargement,pile_analyse,vect_all_pages);
}
prod_cons.hpp
struct pile_params{
deque<string> deck;
stack<string> pile;
string url_racine;
condition_variable_any plein;
condition_variable_any vide;
mutex mut;
pile_params(string _url_racine) :
pile(deck), url_racine(_url_racine), plein(), vide(), mut(){}
};
struct vector_params{
vector<page> vect;
condition_variable_any plein;
condition_variable_any vide;
mutex mut;
vector_params(void) :
vect(), plein(), vide(), mut(){}
};
I didn't manage to solve that even by looking to the others topics concerning the error.