/** Adds a new competency to the prerequisites of a profession. It is protected against duplicata: it can't have twice the same competency.
*
* @return true if an insertion as been made into the prerequiste, false otherwise;
*
* Warning: does not use shallow copy. This can lead to a potential non constant behaviors if use with Profession(vector<Competency>) regarding the modification of compentecies outside this.
* @note Remove the referencing?
*/
boolProfession::addPrerequisite(Competency&c)
{
if(_duplicataProtection(&this->_prerequisites,c))
returnfalse;
this->_prerequisites.push_back(c);
returntrue;
}
// === FUNC
/// _duplicataProtection returns true if the value (2nd param) searched into (1st param) is found