diff --git a/elfio/elfio_section.hpp b/elfio/elfio_section.hpp index 9d6c654..cb188c1 100644 --- a/elfio/elfio_section.hpp +++ b/elfio/elfio_section.hpp @@ -47,7 +47,7 @@ class section ELFIO_GET_SET_ACCESS_DECL( Elf_Word, name_string_offset ); ELFIO_GET_ACCESS_DECL ( Elf64_Off, offset ); size_t stream_size; - const size_t get_stream_size() const + size_t get_stream_size() const { return stream_size; } diff --git a/elfio/elfio_segment.hpp b/elfio/elfio_segment.hpp index 4d95a2f..02d752a 100644 --- a/elfio/elfio_segment.hpp +++ b/elfio/elfio_segment.hpp @@ -95,8 +95,8 @@ class segment_impl : public segment size_t stream_size; //------------------------------------------------------------------------------ - const size_t - get_stream_size() const + size_t + get_stream_size() const { return stream_size; }