mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 13:14:29 +02:00
@@ -103,7 +103,7 @@ the C++ Standard Library types:
|
|||||||
const auto qp1 = quantity_point{sys_seconds{1s}};
|
const auto qp1 = quantity_point{sys_seconds{1s}};
|
||||||
const auto tp1 = to_std_time_point(qp1); // OK
|
const auto tp1 = to_std_time_point(qp1); // OK
|
||||||
|
|
||||||
conat auto qp2 = quantity_point{1 * s};
|
const auto qp2 = quantity_point{1 * s};
|
||||||
const auto tp2 = to_std_time_point(qp2); // Compile-time Error
|
const auto tp2 = to_std_time_point(qp2); // Compile-time Error
|
||||||
|
|
||||||
Here is an example of how interoperatibility described in this chapter can be used in practice::
|
Here is an example of how interoperatibility described in this chapter can be used in practice::
|
||||||
|
Reference in New Issue
Block a user