mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-06 21:54:28 +02:00
apply clang format
This commit is contained in:
4
.github/workflows/ci-check.yml
vendored
4
.github/workflows/ci-check.yml
vendored
@@ -28,9 +28,9 @@ jobs:
|
||||
check:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Install dependencies
|
||||
|
@@ -100,7 +100,6 @@ static_assert(1_q_ft_pdl_per_s * 10_q_s == 10_q_ft_pdl);
|
||||
static_assert(10_q_ft_pdl / 1_q_ft_pdl_per_s == 10_q_s);
|
||||
|
||||
static_assert(detail::unit_text<dim_power, foot_poundal_per_second>() == basic_symbol_text("ft⋅pdl/s", "ft pdl/s"));
|
||||
static_assert(detail::unit_text<dim_power, foot_pound_force_per_second>() ==
|
||||
basic_symbol_text("ft⋅lbf/s", "ft lbf/s"));
|
||||
static_assert(detail::unit_text<dim_power, foot_pound_force_per_second>() == basic_symbol_text("ft⋅lbf/s", "ft lbf/s"));
|
||||
|
||||
} // namespace
|
||||
|
@@ -125,7 +125,11 @@ constexpr bool ctad_constructible_from(Vs...)
|
||||
|
||||
constexpr auto same = []<std::equality_comparable T>(T l, T r) { return l == r; };
|
||||
constexpr auto comp = // TODO: Fix #205 to use `std::equality_comparable_with<T> U`.
|
||||
[]<typename T, typename U>(T l, U r) requires compare<T, U> { return l == r; };
|
||||
[]<typename T, typename U>(T l, U r)
|
||||
requires compare<T, U>
|
||||
{
|
||||
return l == r;
|
||||
};
|
||||
|
||||
template<auto F>
|
||||
requires requires { F(); }
|
||||
|
Reference in New Issue
Block a user