You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template<typename T, typename V>
concept CheckMultiplicableBy = requires(T a, V b) {
{ a * b } -> std::same_as<T>;
{ b * a } -> std::same_as<T>;
{ a *= b } -> std::same_as<T&>;
};
Into this:
template<typename T, typename V>
concept CheckMultiplicableBy = requires(T a, V b) {
{ a* b } -> std::same_as<T>;
{ b* a } -> std::same_as<T>;
{ a *= b } -> std::same_as<T&>;
};
I.e. removes space before *.
With brackets works fine:
template<typename T, typename V>
concept CheckMultiplicableBy = requires(T a, V b) {
{ (a * b) } -> std::same_as<T>;
{ (b * a) } -> std::same_as<T>;
{ a *= b } -> std::same_as<T&>;
};
Clang format version:
$ clang-format-19 --version
Ubuntu clang-format version 19.1.6 (++20241217110052+657e03f8625c-1~exp1~20241217110110.73)