diff --git a/extractor/extractor.cpp b/extractor/extractor.cpp index cf746a5a18a..c1a0a212767 100644 --- a/extractor/extractor.cpp +++ b/extractor/extractor.cpp @@ -59,7 +59,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include #include -#include #include #include #include @@ -179,8 +178,8 @@ int extractor::run() ++number_of_nodes; luabind::call_function( local_state, "node_function", - std::cref(static_cast(*entity)), - std::ref(result_node)); + boost::cref(static_cast(*entity)), + boost::ref(result_node)); resulting_nodes.push_back(std::make_pair(x, result_node)); break; case osmium::item_type::way: @@ -188,8 +187,8 @@ int extractor::run() ++number_of_ways; luabind::call_function( local_state, "way_function", - std::cref(static_cast(*entity)), - std::ref(result_way)); + boost::cref(static_cast(*entity)), + boost::ref(result_way)); resulting_ways.push_back(std::make_pair(x, result_way)); break; case osmium::item_type::relation: diff --git a/extractor/restriction_parser.cpp b/extractor/restriction_parser.cpp index 50a082b70a9..9b209b71991 100644 --- a/extractor/restriction_parser.cpp +++ b/extractor/restriction_parser.cpp @@ -33,11 +33,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "../util/osrm_exception.hpp" #include "../util/simple_logger.hpp" +#include #include +#include #include #include -#include namespace { @@ -86,7 +87,7 @@ void RestrictionParser::ReadRestrictionExceptions(lua_State *lua_state) luabind::set_pcall_callback(&lua_error_callback); // get list of turn restriction exceptions luabind::call_function(lua_state, "get_exceptions", - std::ref(restriction_exceptions)); + boost::ref(restriction_exceptions)); const unsigned exception_count = restriction_exceptions.size(); SimpleLogger().Write() << "Found " << exception_count << " exceptions to turn restrictions:";