Skip to content

Commit 209c0fa

Browse files
committed
Syntax and docs corrections
1 parent c232f35 commit 209c0fa

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Wide-decimal is written in header-only C++14, and compatible through C++14, 17,
4545
- Relatively wide precision range from about ${\sim}~10 {\ldots} 10^{7}$ decimal digits.
4646
- Moderately good efficiency over the entire wide precision range.
4747
- Clean header-only C++14 design.
48-
- Seamless portability to any modern C++20, 23 compiler and beyond.
48+
- Seamless portability to any modern C++14, 17, 20, 23 compiler and beyond.
4949
- Scalability with small memory footprint and efficiency suitable for both PC/workstation systems as well as _bare-metal_ embedded systems.
5050

5151
## Quick start

util/memory/util_n_slot_array_allocator.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@
150150
}
151151

152152
private:
153-
static slot_array_memory_type& slot_array_memory() { static slot_array_memory_type my_mem_instance; return my_mem_instance; }
154-
static slot_array_flags_type& slot_flags () { static slot_array_flags_type my_flg_instance; return my_flg_instance; }
155-
static std::size_t& slot_max_index () { static std::size_t my_idx_instance; return my_idx_instance; }
153+
static auto slot_array_memory() -> slot_array_memory_type& { static slot_array_memory_type my_mem_instance; return my_mem_instance; }
154+
static auto slot_flags () -> slot_array_flags_type& { static slot_array_flags_type my_flg_instance; return my_flg_instance; }
155+
static auto slot_max_index () -> std::size_t& { static std::size_t my_idx_instance; return my_idx_instance; }
156156
};
157157

158158
// Global comparison operators (required by the standard).

0 commit comments

Comments
 (0)