cpp-common/bt2c/fmt.hpp: use `wise_enum::string_type` in `EnableIfIsWiseEnum` definition master
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 29 Apr 2024 19:42:14 +0000 (19:42 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 30 Apr 2024 02:44:34 +0000 (22:44 -0400)
commite6a82b001b968f4dad0fc77fad6760009ba7fdc2
tree4377899c7f4628c6e569fa160b00037c2e7fbb8d
parent4e24e7b301c53b3fb75ee63dcb2a464c307b8890
cpp-common/bt2c/fmt.hpp: use `wise_enum::string_type` in `EnableIfIsWiseEnum` definition

wise_enum uses `const char *` as the string type for C++11/14 and
`std::string_view` for C++ >= 17.  Change `EnableIfIsWiseEnum` to use
`wise_enum::string_type` instead of a hard-coded `const char *`, to make
compilation in C++17 possible.

Change-Id: Ie179e1f5585128950ecdc095f7b136d93ea39e41
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12497
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/cpp-common/bt2c/fmt.hpp
This page took 0.025406 seconds and 4 git commands to generate.