File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,13 @@ struct Event {
54
54
55
55
inline EventId getId (EventId Id) { return Id; }
56
56
57
+ // clang-format off
57
58
template <typename T>
58
59
requires requires (const T &It) {
59
60
{ It.Id } -> std::convertible_to<EventId>;
60
61
}
61
62
EventId getId (const T &It) { return It.Id ; }
63
+ // clang-format on
62
64
63
65
template <typename T> EventId getId (const std::vector<T> &Vec) {
64
66
assert (!Vec.empty ());
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ void ev::defTypes(py::module &Mod) {
42
42
switch (Schema->ParamTypes [Index]) {
43
43
case Type::Number:
44
44
return std::visit (
45
+ // clang-format off
45
46
[]<typename T>(T x) -> py::object {
47
+ // clang-format on
46
48
if constexpr (std::same_as<T, double >)
47
49
return py::float_ (x);
48
50
else
You can’t perform that action at this time.
0 commit comments