Skip to content

Commit

Permalink
settings: make comparePmt() inline
Browse files Browse the repository at this point in the history
Make this function inline to allow code including Settings.hpp to
be split over several compilation units.

Signed-off-by: Daniel Estévez <daniel@destevez.net>
  • Loading branch information
daniestevez authored and drslebedev committed Sep 25, 2024
1 parent 4e711fb commit d29769b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/include/gnuradio-4.0/Settings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ inline constexpr uint64_t convertTimePointToUint64Ns(const std::chrono::time_poi

static auto nullMatchPred = [](auto, auto, auto) { return std::nullopt; };

std::strong_ordering comparePmt(const pmtv::pmt& lhs, const pmtv::pmt& rhs) {
inline std::strong_ordering comparePmt(const pmtv::pmt& lhs, const pmtv::pmt& rhs) {
// If the types are different, cast rhs to the type of lhs and compare
if (lhs.index() != rhs.index()) {
// TODO: throw if types are not the same?
Expand Down

0 comments on commit d29769b

Please sign in to comment.