From cc3d0001ef37157fac4f8c7092b150819735a969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Est=C3=A9vez?= Date: Tue, 24 Sep 2024 10:45:37 +0200 Subject: [PATCH] settings: make comparePmt() inline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make this function inline to allow code including Settings.hpp to be split over several compilation units. Signed-off-by: Daniel Estévez --- core/include/gnuradio-4.0/Settings.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/include/gnuradio-4.0/Settings.hpp b/core/include/gnuradio-4.0/Settings.hpp index a145f21aa..0fa41e123 100644 --- a/core/include/gnuradio-4.0/Settings.hpp +++ b/core/include/gnuradio-4.0/Settings.hpp @@ -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?