diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-29 15:29:05 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-29 15:30:06 +0300 |
commit | 18bff53c997f5bfac0435b8a03ee967eed8c9e20 (patch) | |
tree | b0d3b788a7e2a64f746ba96e3456f01d7b274ca2 /tests/gtests/blenlib/BLI_map_test.cc | |
parent | 4fc5233467b1c273cdb82b221d8faa53249b99c6 (diff) |
BLI: remove blender::Optional in favor of std::optional
`std::optional` can be used now, because we switched to C++17.
Diffstat (limited to 'tests/gtests/blenlib/BLI_map_test.cc')
-rw-r--r-- | tests/gtests/blenlib/BLI_map_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gtests/blenlib/BLI_map_test.cc b/tests/gtests/blenlib/BLI_map_test.cc index 79a8786def9..7a67255d8d3 100644 --- a/tests/gtests/blenlib/BLI_map_test.cc +++ b/tests/gtests/blenlib/BLI_map_test.cc @@ -88,7 +88,7 @@ TEST(map, PopTry) map.add(1, 5); map.add(2, 7); EXPECT_EQ(map.size(), 2u); - Optional<int> value = map.pop_try(4); + std::optional<int> value = map.pop_try(4); EXPECT_EQ(map.size(), 2u); EXPECT_FALSE(value.has_value()); value = map.pop_try(2); |