[core] Fix MapSnapshotter build failure on Windows
MSVC implementation of std::promise is buggy and only works with types that can be default-constructed. To avoid a compilation failure in the instantiation of ask() inside MapSnapshotter::getRegion(), which creates a std::promise<LanLngBounds>, make LatLngBounds' default constructor public.
This commit is contained in:
@@ -609,7 +609,7 @@ TEST(Transform, LatLngBounds) {
|
||||
transform.jumpTo(CameraOptions().withCenter(LatLng()).withZoom(transform.getState().getMaxZoom()));
|
||||
|
||||
// Default bounds.
|
||||
ASSERT_EQ(transform.getState().getLatLngBounds(), LatLngBounds::unbounded());
|
||||
ASSERT_EQ(transform.getState().getLatLngBounds(), LatLngBounds());
|
||||
ASSERT_EQ(transform.getLatLng(), nullIsland);
|
||||
|
||||
// Invalid bounds.
|
||||
@@ -617,7 +617,7 @@ TEST(Transform, LatLngBounds) {
|
||||
transform.setLatLngBounds(LatLngBounds::empty());
|
||||
ASSERT_TRUE(false) << "Should throw";
|
||||
} catch (...) {
|
||||
ASSERT_EQ(transform.getState().getLatLngBounds(), LatLngBounds::unbounded());
|
||||
ASSERT_EQ(transform.getState().getLatLngBounds(), LatLngBounds());
|
||||
}
|
||||
|
||||
transform.jumpTo(CameraOptions().withCenter(sanFrancisco));
|
||||
|
||||
Reference in New Issue
Block a user