build: conan test_package updated for V2

This commit is contained in:
Mateusz Pusz
2023-05-26 15:57:14 +02:00
parent 40c08c0eae
commit 879ec35d84

View File

@@ -20,22 +20,20 @@
// 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 <mp-units/iostream.h>
#include <units/isq/si/speed.h> #include <mp-units/systems/isq/space_and_time.h>
#include <units/isq/si/time.h> #include <mp-units/systems/si/unit_symbols.h>
#include <units/quantity_io.h>
#include <iostream> #include <iostream>
using namespace units; using namespace mp_units;
template<isq::Length Length, isq::Time Time> constexpr QuantityOf<isq::speed> auto avg_speed(QuantityOf<isq::distance> auto d, QuantityOf<isq::duration> auto t)
constexpr auto avg_speed(Length d, Time t)
{ {
return d / t; return d / t;
} }
int main() int main()
{ {
using namespace units::isq::si::references; using namespace mp_units::si::unit_symbols;
std::cout << "Average speed = " << avg_speed(240 * km, 2 * h) << '\n'; std::cout << "Average speed = " << avg_speed(240 * km, 2 * h) << '\n';
} }