Merge pull request #6156 from mloskot/ml/fix-msvc-19-28-static-const-member

Fix MSVC 19.28+ issue with ByEdgeOrByMeterValue::by_edge and ByEdgeOrByMeterValue::by_meter definitions
This commit is contained in:
Denis Chapligin 2021-11-13 23:29:08 +02:00 committed by GitHub
commit ff1af413d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,24 @@
#include <string> #include <string>
#include <vector> #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 osrm
{ {
namespace extractor namespace extractor