Files
porterskyandClaude Opus 5.5 c681ebab2b feat(deps): add FindBoost module with components
Fetch the Boost CMake release archive (default 1.92.0) and build only
the libraries requested via find_package(Boost COMPONENTS ...), plus
their dependencies. Each component is exposed as Boost::<name>, e.g.
Boost::serialization. cmat now uses this module instead of a system
Boost install, so the Boost exercises are always available.

Also fix SolutionEx62Bonus: Employee.h used base_object without
including <boost/serialization/base_object.hpp>. This was not an
intentional exercise bug; it likely relied on a transitive include
in older Boost versions.

Co-authored-by: Claude Opus 5.5 <claude.opus5.5@anthropic.com>
2026-10-06 08:11:54 +02:00

23 lines
479 B
C++

#ifndef EMPLYOEE_H
#define EMPLYOEE_H
#include "Person.h"
#include <boost/serialization/base_object.hpp>
class Employee : public Person {
public:
void askForInfo();
private:
int salary;
void doDisplay();
template <class Archive> void serialize(Archive &ar, const unsigned int version) {
ar &boost::serialization::base_object<Person>(*this);
ar &salary;
}
friend class boost::serialization::access;
};
#endif