diff --git a/lib/include/srsran/adt/interval.h b/lib/include/srsran/adt/interval.h index 930e5250e..c20ffe499 100644 --- a/lib/include/srsran/adt/interval.h +++ b/lib/include/srsran/adt/interval.h @@ -39,7 +39,7 @@ public: bool empty() const { return stop_ == start_; } - auto length() -> decltype(std::declval() - std::declval()) const { return stop_ - start_; } + auto length() const -> decltype(std::declval() - std::declval()) { return stop_ - start_; } void set(T start_point, T stop_point) { diff --git a/lib/include/srsran/common/byte_buffer.h b/lib/include/srsran/common/byte_buffer.h index 016ced218..e33bc3a32 100644 --- a/lib/include/srsran/common/byte_buffer.h +++ b/lib/include/srsran/common/byte_buffer.h @@ -155,7 +155,7 @@ public: const uint8_t* data() const { return msg; } uint32_t size() const { return N_bytes; } iterator begin() { return msg; } - const iterator begin() const { return msg; } + const_iterator begin() const { return msg; } iterator end() { return msg + N_bytes; } const_iterator end() const { return msg + N_bytes; }