test: const-correctness (and [[nodiscard]] as needed)

This commit is contained in:
Michele Caini
2023-12-18 14:00:28 +01:00
parent 72304e6781
commit cd59efab8f

View File

@@ -23,7 +23,7 @@ struct clazz {
return {};
}
int bar(double, float) const {
[[nodiscard]] int bar(double, float) const {
return {};
}
@@ -75,7 +75,7 @@ TEST_F(UnpackAsValue, Functionalities) {
}
TEST(IntegralConstant, Functionalities) {
entt::integral_constant<3> constant{};
const entt::integral_constant<3> constant{};
testing::StaticAssertTypeEq<typename entt::integral_constant<3>::value_type, int>();
ASSERT_EQ(constant.value, 3);