diff --git a/sdk/core/azure-core/inc/http/pipeline.hpp b/sdk/core/azure-core/inc/http/pipeline.hpp index 553bc8b60..1accea4e4 100644 --- a/sdk/core/azure-core/inc/http/pipeline.hpp +++ b/sdk/core/azure-core/inc/http/pipeline.hpp @@ -17,7 +17,7 @@ namespace Azure { namespace Core { namespace Http { std::vector> m_policies; public: - HttpPipeline(std::vector>& policies) + explicit HttpPipeline(const std::vector>& policies) { m_policies.reserve(policies.size()); for (auto&& policy : policies) @@ -26,6 +26,11 @@ namespace Azure { namespace Core { namespace Http { } } + explicit HttpPipeline(std::vector>&& policies) + : m_policies(std::move(policies)) + { + } + HttpPipeline(const HttpPipeline& other) { m_policies.reserve(other.m_policies.size());