Skip to content

Commit

Permalink
fix: si_test compilation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Feb 5, 2024
1 parent 25a4c7c commit 8b5d2ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/static/si_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ static_assert(1 * Rm == 1'000'000'000'000'000'000 * Gm);
static_assert(1 * Qm == 1'000'000'000'000'000'000 * Tm);

// check for invalid prefixes
template<template<auto U> typename prefix, auto V1>
concept can_not_be_prefixed = Unit<std::remove_const_t<decltype(V1)>> && !requires { typename prefix<V1>; };
template<template<typename U> typename prefix, auto V1>
concept can_not_be_prefixed =
Unit<std::remove_const_t<decltype(V1)>> && !requires { typename prefix<std::remove_const_t<decltype(V1)>>; };

static_assert(can_not_be_prefixed<si::milli_, si::degree_Celsius>);
static_assert(can_not_be_prefixed<si::milli_, si::minute>);
Expand Down

0 comments on commit 8b5d2ea

Please sign in to comment.