Skip to content

Use std::make_shared in other locations where we were 'manually' creating the objects.#689

Merged
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
jamessynge:make_shared
Apr 4, 2017
Merged

Use std::make_shared in other locations where we were 'manually' creating the objects.#689
mattklein123 merged 2 commits intoenvoyproxy:masterfrom
jamessynge:make_shared

Conversation

@jamessynge
Copy link
Contributor

No description provided.

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there might be some other cases too. I've been meaning to go through and fix at least the cases that are in the hot path. But thanks, looks good.

@mattklein123 mattklein123 merged commit f3b6e35 into envoyproxy:master Apr 4, 2017
@jamessynge
Copy link
Contributor Author

I think I got all but one of that matched the pattern "return .SharedPtr.new Foo(.).;"
The one I couldn't change had a private ctor.

There are a lot of cases of unique_ptrs initialized without the use of something like make_unique, but make_unique isn't in C++ 11, so I didn't bother with trying to address those.

@jamessynge jamessynge deleted the make_shared branch April 4, 2017 19:37
jpsim pushed a commit that referenced this pull request Nov 28, 2022
As of envoyproxy/envoy-mobile#616, this is no longer used or necessary since it's handled by the router.

Resolves envoyproxy/envoy-mobile#643.

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
As of envoyproxy/envoy-mobile#616, this is no longer used or necessary since it's handled by the router.

Resolves envoyproxy/envoy-mobile#643.

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
mathetake pushed a commit that referenced this pull request Mar 3, 2026
**Commit Message**

Upgrading Docusaurus version to 3.8

Signed-off-by: Erica Hughberg <erica.sundberg.90@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants