Skip to content

Commit 1ecb38f

Browse files
author
Julia Smerdel
committed
format change
1 parent 59f9298 commit 1ecb38f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/core/include/mp-units/cartesian_tensor.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
#pragma once
2424

25-
#include <mp-units/bits/requires_hosted.h>
2625
#include <mp-units/bits/module_macros.h>
26+
#include <mp-units/bits/requires_hosted.h>
2727
#include <mp-units/cartesian_vector.h>
2828
#include <mp-units/framework/customization_points.h>
2929
#include <mp-units/framework/representation_concepts.h>
@@ -56,8 +56,8 @@ class cartesian_tensor {
5656
static_assert(R >= 1 && R <= 3 && C >= 1 && C <= 3, "cartesian_tensor supports sizes up to 3x3");
5757

5858
public:
59+
// public members required to satisfy structural type requirements :-(
5960
// NOTE: This type is intentionally an aggregate (like std::array).
60-
// All special member functions are implicitly defined.
6161
T _data_[R * C];
6262
using value_type = T;
6363
static constexpr std::size_t rows_v = R;
@@ -209,4 +209,4 @@ struct MP_UNITS_STD_FMT::formatter<mp_units::cartesian_tensor<T, R, C>, Char> :
209209
return out;
210210
}
211211
};
212-
#endif
212+
#endif

src/core/include/mp-units/cartesian_vector.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
#pragma once
2424

25-
#include <mp-units/bits/requires_hosted.h>
2625
#include <mp-units/bits/module_macros.h>
26+
#include <mp-units/bits/requires_hosted.h>
2727
#include <mp-units/framework/customization_points.h>
2828
#include <mp-units/framework/representation_concepts.h>
2929
#include <type_traits>
@@ -55,8 +55,8 @@ class cartesian_vector;
5555
MP_UNITS_EXPORT template<detail::Scalar T = double>
5656
class cartesian_vector {
5757
public:
58+
// public members required to satisfy structural type requirements :-(
5859
// NOTE: This type is intentionally an aggregate (like std::array).
59-
// All special member functions are implicitly defined.
6060
T _coordinates_[3];
6161
using value_type = T;
6262

@@ -271,4 +271,4 @@ struct MP_UNITS_STD_FMT::formatter<mp_units::cartesian_vector<T>, Char> :
271271
return format_to(ctx.out(), "[{}, {}, {}]", vec[0], vec[1], vec[2]);
272272
}
273273
};
274-
#endif
274+
#endif

test/runtime/cartesian_tensor_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,4 @@ TEST_CASE("cartesian_tensor — core", "[tensor]")
170170
static_assert(C(0, 0) == 5 && C(0, 1) == 7 && C(0, 2) == 9);
171171
(void)C;
172172
}
173-
}
173+
}

test/runtime/cartesian_vector_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,4 +245,4 @@ TEST_CASE("cartesian_vector", "[vector]")
245245
static_assert(c._coordinates_[0] == 5 && c._coordinates_[1] == 7 && c._coordinates_[2] == 9);
246246
(void)c;
247247
}
248-
}
248+
}

0 commit comments

Comments
 (0)