Add type traits to disable plugins for specific algorithms
This commit is contained in:
committed by
Patrick Niklaus
parent
436b34ffea
commit
922e155763
@@ -7,6 +7,8 @@
|
||||
#include "engine/algorithm.hpp"
|
||||
#include "engine/search_engine_data.hpp"
|
||||
|
||||
#include "util/exception.hpp"
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
namespace engine
|
||||
@@ -14,6 +16,16 @@ namespace engine
|
||||
namespace routing_algorithms
|
||||
{
|
||||
|
||||
template <typename AlgorithmT>
|
||||
InternalRouteResult
|
||||
alternativePathSearch(SearchEngineData &,
|
||||
const datafacade::ContiguousInternalMemoryDataFacade<AlgorithmT> &,
|
||||
const PhantomNodes &)
|
||||
{
|
||||
throw util::exception(std::string("alternativePathSearch is not implemented for ") +
|
||||
typeid(AlgorithmT).name());
|
||||
}
|
||||
|
||||
InternalRouteResult
|
||||
alternativePathSearch(SearchEngineData &search_engine_data,
|
||||
const datafacade::ContiguousInternalMemoryDataFacade<algorithm::CH> &facade,
|
||||
|
||||
Reference in New Issue
Block a user