SpaceTeam / STS1_COBC_SW

Software for the communication and onboard computer (COBC) of SpaceTeamSat1 (STS1)
MIT License
10 stars 2 forks source link

Add strong types for fram::Address and fram::Size #308

Closed PatrickKa closed 4 months ago

PatrickKa commented 4 months ago

Description

Use the new strong_type library instead of NamedType. It should look something like

#include <strong_type/strong_type.hpp>

using Size = strong::type<std::uint32_t, struct SizeTag, probably_some_modifiers>;
using Address = strong::type<std::uint32_t, struct AddressTag, strong::affine_point<Size>, probably_more_modifiers>;

Regarding the potential modifiers, I would assume that something like strong::equality, strong::ordered, or strong::strongly_ordered could be necessary.

PatrickKa commented 4 months ago

Blocked because while SpaceTeam/STS1_COBC_Docker#58 is already implemented, a new version of the Docker image is not yet released.

PatrickKa commented 4 months ago

Until the new version of the Docker image is released, we installed the library locally in our container to not be blocked by that.