mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 19:04:27 +02:00
ci: Conan test_package
fixed to use references rather than UDLs
This commit is contained in:
@@ -20,7 +20,9 @@
|
|||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
|
#include <units/isq/si/length.h>
|
||||||
#include <units/isq/si/speed.h>
|
#include <units/isq/si/speed.h>
|
||||||
|
#include <units/isq/si/time.h>
|
||||||
#include <units/quantity_io.h>
|
#include <units/quantity_io.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
@@ -34,6 +36,6 @@ constexpr auto avg_speed(Length d, Time t)
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
using namespace units::isq::si::literals;
|
using namespace units::isq::si::references;
|
||||||
std::cout << "Average speed = " << avg_speed(240._q_km, 2_q_h) << '\n';
|
std::cout << "Average speed = " << avg_speed(240 * km, 2 * h) << '\n';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user