mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 04:44:27 +02:00
[msvc][fix] msvc needs explicit namespace for some using-declarations
This commit is contained in:
@@ -33,7 +33,7 @@ namespace {
|
|||||||
|
|
||||||
using namespace mp_units;
|
using namespace mp_units;
|
||||||
|
|
||||||
using dimension_one_ = struct dimension_one;
|
using dimension_one_ = struct mp_units::dimension_one;
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
inline constexpr struct length_ final : base_dimension<"L"> {} length;
|
inline constexpr struct length_ final : base_dimension<"L"> {} length;
|
||||||
|
@@ -33,8 +33,8 @@ namespace {
|
|||||||
|
|
||||||
using namespace mp_units;
|
using namespace mp_units;
|
||||||
|
|
||||||
using dimensionless_ = struct dimensionless;
|
using dimensionless_ = struct mp_units::dimensionless;
|
||||||
using dim_one_ = struct dimension_one;
|
using dim_one_ = struct mp_units::dimension_one;
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
inline constexpr struct dim_length_ final : base_dimension<"L"> {} dim_length;
|
inline constexpr struct dim_length_ final : base_dimension<"L"> {} dim_length;
|
||||||
|
@@ -34,8 +34,8 @@ namespace {
|
|||||||
|
|
||||||
using namespace mp_units;
|
using namespace mp_units;
|
||||||
|
|
||||||
using dimensionless_ = struct dimensionless;
|
using dimensionless_ = struct mp_units::dimensionless;
|
||||||
using one_ = struct one;
|
using one_ = struct mp_units::one;
|
||||||
|
|
||||||
// base dimensions
|
// base dimensions
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
@@ -35,8 +35,8 @@ namespace {
|
|||||||
using namespace mp_units;
|
using namespace mp_units;
|
||||||
using namespace mp_units::detail;
|
using namespace mp_units::detail;
|
||||||
|
|
||||||
using one_ = struct one;
|
using one_ = struct mp_units::one;
|
||||||
using percent_ = struct percent;
|
using percent_ = struct mp_units::percent;
|
||||||
|
|
||||||
// base dimensions
|
// base dimensions
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
Reference in New Issue
Block a user