aboutsummaryrefslogtreecommitdiffstats
path: root/source/types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/types.hpp')
-rw-r--r--source/types.hpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/source/types.hpp b/source/types.hpp
index fd0b81e..9627a47 100644
--- a/source/types.hpp
+++ b/source/types.hpp
@@ -100,13 +100,10 @@ struct WordSet
* and used for a word's definition.
*/
template<auto... funcs>
-auto WordWrap = [] {
- constexpr static Func list[1] = {
- +[] { (funcs(), ...); }
- };
-
- return list;
-};
+constexpr auto WordWrap = []() noexcept {
+ constexpr static auto wrapper = +[] { (funcs(), ...); };
+ return &wrapper;
+}();
enum class Error : int {
none = 1,