Skip to content

Commit 08ad030

Browse files
authored
Fix compilation error in raster_source (#7423)
1 parent 828973b commit 08ad030

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- FIXED: Crash when route starts or ends at `type=manoeuvre` relation via node [#7287](https://github.com/Project-OSRM/osrm-backend/issues/7287)
66
- Extraction:
77
- ADDED: Emit warning when ways reference nodes not present in input data [#1596](https://github.com/Project-OSRM/osrm-backend/issues/1596)
8+
- FIXED: Compilation error in raster_source [#7422](https://github.com/Project-OSRM/osrm-backend/issues/7422)
89
- Profiles:
910
- FIXED: Roads with a real `highway=*` type and an additional `proposed=*` tag (e.g. a planned upgrade) are now routed correctly instead of being silently pruned [#7413](https://github.com/Project-OSRM/osrm-backend/issues/7413)
1011
- ADDED: Vehicle-specific maximum speed profiles with configurable upper bounds (e.g., 87 km/h for trucks) [#6979](https://github.com/Project-OSRM/osrm-backend/issues/6979)

include/extractor/raster_source.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class RasterSource
9494
const float xstep;
9595
const float ystep;
9696

97-
float CalcSize(int min, int max, std::size_t count) const;
97+
static float CalcSize(int min, int max, std::size_t count);
9898

9999
public:
100100
RasterGrid raster_data;

src/extractor/raster_source.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RasterSource::RasterSource(RasterGrid _raster_data,
2626
BOOST_ASSERT(ystep != 0);
2727
}
2828

29-
float RasterSource::CalcSize(int min, int max, std::size_t count) const
29+
float RasterSource::CalcSize(int min, int max, std::size_t count)
3030
{
3131
BOOST_ASSERT(count > 0);
3232
return (max - min) / (static_cast<float>(count) - 1);

0 commit comments

Comments
 (0)