Skip to content

Commit

Permalink
Merge pull request Project-OSRM#6156 from mloskot/ml/fix-msvc-19-28-s…
Browse files Browse the repository at this point in the history
…tatic-const-member

Fix MSVC 19.28+ issue with ByEdgeOrByMeterValue::by_edge and ByEdgeOrByMeterValue::by_meter definitions
  • Loading branch information
akashihi authored Nov 13, 2021
2 parents d5cd702 + ffa4256 commit ff1af41
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/extractor/extractor_callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@
#include <string>
#include <vector>

#ifdef _MSC_VER
#if (_MSC_VER >= 1928)
#ifdef _DEBUG
namespace osrm
{
namespace extractor
{
namespace detail
{
const ByEdgeOrByMeterValue::ValueByEdge ByEdgeOrByMeterValue::by_edge;
const ByEdgeOrByMeterValue::ValueByMeter ByEdgeOrByMeterValue::by_meter;
} // namespace detail
} // namespace extractor
} // namespace osrm
#endif
#endif
#endif

namespace osrm
{
namespace extractor
Expand Down

0 comments on commit ff1af41

Please sign in to comment.