Switch to const constexpr for header constants (3.5/3 internal linkage)

This commit is contained in:
Daniel J. Hofmann 2016-01-19 14:38:32 +01:00 committed by Patrick Niklaus
parent 5d743bb0a3
commit 6e717bfd30
2 changed files with 3 additions and 9 deletions

View File

@ -15,11 +15,8 @@ namespace engine
namespace datafacade
{
namespace
{
// Added at the start and end of each block as sanity check
static const char CANARY[] = "OSRM";
}
const constexpr char CANARY[] = "OSRM";
struct SharedDataLayout
{

View File

@ -10,9 +10,6 @@ using TravelMode = unsigned char;
}
}
namespace
{
static const osrm::extractor::TravelMode TRAVEL_MODE_INACCESSIBLE = 0;
static const osrm::extractor::TravelMode TRAVEL_MODE_DEFAULT = 1;
}
const constexpr osrm::extractor::TravelMode TRAVEL_MODE_INACCESSIBLE = 0;
const constexpr osrm::extractor::TravelMode TRAVEL_MODE_DEFAULT = 1;
#endif /* TRAVEL_MODE_HPP */