From 879ec35d84217ae8d90090838c06850a7cba7625 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 26 May 2023 15:57:14 +0200 Subject: [PATCH] build: conan `test_package` updated for V2 --- test_package/test_package.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test_package/test_package.cpp b/test_package/test_package.cpp index 91680dd9..5c39d71b 100644 --- a/test_package/test_package.cpp +++ b/test_package/test_package.cpp @@ -20,22 +20,20 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -#include -#include -#include -#include +#include +#include +#include #include -using namespace units; +using namespace mp_units; -template -constexpr auto avg_speed(Length d, Time t) +constexpr QuantityOf auto avg_speed(QuantityOf auto d, QuantityOf auto t) { return d / t; } 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'; }