From 72e03f4f5969bd3b2b6b507df3079b86078cecf6 Mon Sep 17 00:00:00 2001 From: Jonas Hoppe <162709928+czjhoppe@users.noreply.github.com> Date: Fri, 30 Aug 2024 11:23:30 +0200 Subject: [PATCH] [msvc][fix] msvc needs explicit namespace for some using-declarations --- test/static/dimension_test.cpp | 2 +- test/static/quantity_spec_test.cpp | 4 ++-- test/static/reference_test.cpp | 4 ++-- test/static/unit_test.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/static/dimension_test.cpp b/test/static/dimension_test.cpp index 8064831e..f1d64590 100644 --- a/test/static/dimension_test.cpp +++ b/test/static/dimension_test.cpp @@ -33,7 +33,7 @@ namespace { using namespace mp_units; -using dimension_one_ = struct dimension_one; +using dimension_one_ = struct mp_units::dimension_one; // clang-format off inline constexpr struct length_ final : base_dimension<"L"> {} length; diff --git a/test/static/quantity_spec_test.cpp b/test/static/quantity_spec_test.cpp index ee4e86a8..ed4cb359 100644 --- a/test/static/quantity_spec_test.cpp +++ b/test/static/quantity_spec_test.cpp @@ -33,8 +33,8 @@ namespace { using namespace mp_units; -using dimensionless_ = struct dimensionless; -using dim_one_ = struct dimension_one; +using dimensionless_ = struct mp_units::dimensionless; +using dim_one_ = struct mp_units::dimension_one; // clang-format off inline constexpr struct dim_length_ final : base_dimension<"L"> {} dim_length; diff --git a/test/static/reference_test.cpp b/test/static/reference_test.cpp index 65abe0bb..f7f3d709 100644 --- a/test/static/reference_test.cpp +++ b/test/static/reference_test.cpp @@ -34,8 +34,8 @@ namespace { using namespace mp_units; -using dimensionless_ = struct dimensionless; -using one_ = struct one; +using dimensionless_ = struct mp_units::dimensionless; +using one_ = struct mp_units::one; // base dimensions // clang-format off diff --git a/test/static/unit_test.cpp b/test/static/unit_test.cpp index ba7ecb4c..c16ea66a 100644 --- a/test/static/unit_test.cpp +++ b/test/static/unit_test.cpp @@ -35,8 +35,8 @@ namespace { using namespace mp_units; using namespace mp_units::detail; -using one_ = struct one; -using percent_ = struct percent; +using one_ = struct mp_units::one; +using percent_ = struct mp_units::percent; // base dimensions // clang-format off