summaryrefslogtreecommitdiff
path: root/src/option_types.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-03-13 14:24:03 +1100
committerMaxime Coste <mawww@kakoune.org>2018-03-13 14:24:03 +1100
commita480e566dc500e2aeb51b01c5afd7a48b1bd2587 (patch)
tree76ba602d73e4e7110f10899d4844ffc3015c1a1f /src/option_types.hh
parentc82bf313784c63bc2fa36b0ad55167ce14e1d05a (diff)
ranges: Add transform overload taking directly a pointer to member
This overload will forward to the general transform implementation using std::mem_fn to generate a callable.
Diffstat (limited to 'src/option_types.hh')
-rw-r--r--src/option_types.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option_types.hh b/src/option_types.hh
index 1e736436..aae25dde 100644
--- a/src/option_types.hh
+++ b/src/option_types.hh
@@ -30,7 +30,7 @@ option_type_name(Meta::Type<Enum>)
{
return format("{}({})", with_bit_ops(Meta::Type<Enum>{}) ? "flags" : "enum",
join(enum_desc(Meta::Type<Enum>{}) |
- transform(std::mem_fn(&EnumDesc<Enum>::name)), '|'));
+ transform(&EnumDesc<Enum>::name), '|'));
}
inline String option_to_string(int opt) { return to_string(opt); }