From 73495e0d0d483769ae2937868840854c15515eb2 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 12 Jul 2026 17:50:32 +0200 Subject: Fix exporting non-public symbols --- include/elna/boot/symbol.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/elna/boot/symbol.h b/include/elna/boot/symbol.h index d29587d..e13e842 100644 --- a/include/elna/boot/symbol.h +++ b/include/elna/boot/symbol.h @@ -205,12 +205,12 @@ namespace elna::boot return this->entries.end(); } - const_iterator cbegin() const + const_iterator begin() const { return this->entries.cbegin(); } - const_iterator cend() const + const_iterator end() const { return this->entries.cend(); } @@ -448,6 +448,15 @@ namespace elna::boot * \param bag Symbol bag of another module. */ void add_import(const symbol_bag& bag); + + private: + /** + * Returns a reduced symbol table with exported symbols, computed lazily + * and cached. + */ + std::shared_ptr exported_symbols() const; + + mutable std::shared_ptr m_exported; }; /** -- cgit v1.2.3