diff --git a/src/agrpc/detail/memory_resource.hpp b/src/agrpc/detail/memory_resource.hpp index e517a548..02d7b52a 100644 --- a/src/agrpc/detail/memory_resource.hpp +++ b/src/agrpc/detail/memory_resource.hpp @@ -16,6 +16,8 @@ #include #elif defined(AGRPC_USE_BOOST_CONTAINER) #include +#elif defined(SWIFTNAV_EXPERIMENTAL_MEMORY_RESOURCE) +#include #else #include #endif diff --git a/src/agrpc/detail/memory_resource_std_pmr_experimental.hpp b/src/agrpc/detail/memory_resource_std_pmr_experimental.hpp new file mode 100644 index 00000000..cee38135 --- /dev/null +++ b/src/agrpc/detail/memory_resource_std_pmr_experimental.hpp @@ -0,0 +1,31 @@ +// Copyright 2023 Dennis Hezel +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#ifndef AGRPC_DETAIL_MEMORY_RESOURCE_EXPERIMENTAL_HPP +#define AGRPC_DETAIL_MEMORY_RESOURCE_EXPERIMENTAL_HPP + +#include +#include + +AGRPC_NAMESPACE_BEGIN() + +namespace detail +{ +namespace pmr = std::experimental::pmr; +namespace container = std; +} + +AGRPC_NAMESPACE_END + +#endif // AGRPC_DETAIL_MEMORY_RESOURCE_EXPERIMENTAL_HPP