From 2416d0fd151cf6c3843ff9d97f269eda754fe399 Mon Sep 17 00:00:00 2001 From: Josip Mrden <josip.mrden@memgraph.io> Date: Fri, 1 Mar 2024 13:27:00 +0100 Subject: [PATCH] Add friend class to map so query execution can access a private member --- include/mgp.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/mgp.hpp b/include/mgp.hpp index 050ed5ce7..60a664c57 100644 --- a/include/mgp.hpp +++ b/include/mgp.hpp @@ -600,6 +600,7 @@ class Map { friend class Record; friend class Result; friend class Parameter; + friend class QueryExecution; public: /// @brief Creates a Map from the copy of the given @ref mgp_map. @@ -1600,9 +1601,6 @@ class ExecutionHeaders { }; class QueryExecution { - private: - friend class Map; - public: QueryExecution(mgp_graph *graph); ExecutionResult ExecuteQuery(std::string_view query, Map params = Map()) const;