| 1097 | }; |
| 1098 | |
| 1099 | template <typename T, ProgressBarOption Id> struct Setting { |
| 1100 | template <typename... Args, |
| 1101 | typename = typename std::enable_if<std::is_constructible<T, Args...>::value>::type> |
| 1102 | explicit Setting(Args &&... args) : value(std::forward<Args>(args)...) {} |
| 1103 | Setting(const Setting &) = default; |
| 1104 | Setting(Setting &&) = default; |
| 1105 | |
| 1106 | static constexpr auto id = Id; |
| 1107 | using type = T; |
| 1108 | |
| 1109 | T value{}; |
| 1110 | }; |
| 1111 | |
| 1112 | template <typename T> struct is_setting : std::false_type {}; |
| 1113 |
nothing calls this directly
no outgoing calls
no test coverage detected