|
|
@@ -81,8 +81,8 @@ TEST(Any, NoSBO) {
|
|
|
}
|
|
|
|
|
|
TEST(Any, SBOInPlaceConstruction) {
|
|
|
- std::unique_ptr<int> instance = std::make_unique<int>(2);
|
|
|
- entt::any any{std::in_place, instance.release()};
|
|
|
+ std::unique_ptr<int> elem = std::make_unique<int>(2);
|
|
|
+ entt::any any{std::in_place, elem.release()};
|
|
|
|
|
|
ASSERT_TRUE(any);
|
|
|
ASSERT_TRUE(any.owner());
|
|
|
@@ -393,8 +393,8 @@ TEST(Any, SBOAsConstRefTransferValue) {
|
|
|
}
|
|
|
|
|
|
TEST(Any, NoSBOInPlaceConstruction) {
|
|
|
- std::unique_ptr<fat> instance = std::make_unique<fat>(.1, .2, .3, .4);
|
|
|
- entt::any any{std::in_place, instance.release()};
|
|
|
+ std::unique_ptr<fat> elem = std::make_unique<fat>(.1, .2, .3, .4);
|
|
|
+ entt::any any{std::in_place, elem.release()};
|
|
|
|
|
|
ASSERT_TRUE(any);
|
|
|
ASSERT_TRUE(any.owner());
|