Added flatbuffers support to the PluginBase::Error

This changes BREAKS osrm.
This commit is contained in:
Denis Chaplygin
2019-08-05 13:46:13 +03:00
parent 56406e80ce
commit 7ddda105a3
5 changed files with 34 additions and 6 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
#ifndef ENGINE_API_BASE_RESULT_HPP
#define ENGINE_API_BASE_RESULT_HPP
#include <flatbuffers/flatbuffers.h>
#include <mapbox/variant.hpp>
#include <string>
@@ -13,7 +14,7 @@ namespace engine
{
namespace api
{
using ResultT = mapbox::util::variant<util::json::Object, std::string>;
using ResultT = mapbox::util::variant<util::json::Object, std::string, flatbuffers::FlatBufferBuilder>;
} // ns api
} // ns engine
} // ns osrm