refactor: QuantityLike concept improved
This commit is contained in:
1 parent
c2f9a62e34
commit
ada3c60ee9
2 files changed
+21
-6
No files matched your search
@@ -31,6 +31,7 @@ using namespace units::physical;
|
||||
using namespace units::physical::si::literals;
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
static_assert(QuantityLike<std::chrono::seconds>);
|
||||
|
||||
// construction - same rep type
|
||||
static_assert(std::constructible_from<si::time<si::second, std::chrono::seconds::rep>, std::chrono::seconds>);
|
||||
|
||||
Reference in new issue
Block a user