Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter is an implementation detail #103

Merged

Conversation

ashtum
Copy link
Collaborator

@ashtum ashtum commented Sep 13, 2024

No description provided.

class BOOST_HTTP_PROTO_DECL
filter
: public buffered_base
class filter
Copy link
Member

Choose a reason for hiding this comment

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

this type is still publicly visible. can't we just forward-declare it and only declare it in the .cpp files?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, we can forward declare it and add filter.hpp to src.

Copy link
Member

Choose a reason for hiding this comment

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

lets do it

@cppalliance-bot
Copy link

Antora version: an automated preview of the documentation is available at https://103.http-proto.prtest.cppalliance.org/site/index.html

@ashtum ashtum force-pushed the filter-is-an-implementation-detail branch from 86dbc0e to 41ee9b0 Compare September 13, 2024 18:28
@@ -335,7 +335,7 @@ init(bool use_gzip)
stream_.avail_in = 0;
}

filter::results
http_proto::detail::filter::results
Copy link
Member

Choose a reason for hiding this comment

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

auto with a trailing return type might make this shorter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

deflate_filter is in a different namespace. we need the whole http_proto::detail::filter::results.

@vinniefalco
Copy link
Member

I left one comment, otherwise this seems OK.

@cppalliance-bot
Copy link

Antora version: an automated preview of the documentation is available at https://103.http-proto.prtest.cppalliance.org/site/index.html

@ashtum ashtum force-pushed the filter-is-an-implementation-detail branch from 41ee9b0 to e065579 Compare September 13, 2024 18:38
@cppalliance-bot
Copy link

Antora version: an automated preview of the documentation is available at https://103.http-proto.prtest.cppalliance.org/site/index.html

@ashtum ashtum force-pushed the filter-is-an-implementation-detail branch from e065579 to 0bc02e4 Compare September 13, 2024 19:16
@ashtum ashtum force-pushed the filter-is-an-implementation-detail branch from 0bc02e4 to 55af300 Compare September 13, 2024 19:20
@cppalliance-bot
Copy link

Antora version: an automated preview of the documentation is available at https://103.http-proto.prtest.cppalliance.org/site/index.html

@ashtum ashtum merged commit 7cc0a89 into cppalliance:develop Sep 13, 2024
57 of 58 checks passed
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.

3 participants