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

zlib::service refactor #108

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Conversation

ashtum
Copy link
Collaborator

@ashtum ashtum commented Sep 19, 2024

No description provided.

@cppalliance-bot
Copy link

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

install_service(context& ctx);

} // zlib
} // http_proto
} // boost

#include <boost/http_proto/service/impl/zlib_service.hpp>
Copy link
Member

Choose a reason for hiding this comment

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

we don't do this anymore... everything goes in the compiled lib

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The contents of impl/zlib_service.hpp are declarations and constexpr functions, which must be placed in header files.
This is similar to: https://github.com/cppalliance/http_proto/blob/develop/include/boost/http_proto/impl/error.hpp

namespace detail {

struct BOOST_SYMBOL_VISIBLE
error_cat_type
Copy link
Member

Choose a reason for hiding this comment

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

I didn't realize URL put so much in the headers. Is this the best technique? Maybe... I can't remember why though.

BOOST_SYSTEM_CONSTEXPR
system::error_code
make_error_code(
error ev) noexcept
Copy link
Member

Choose a reason for hiding this comment

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

I guess making this function inline has performance advantages for things like comparisons to error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe that since system::error_code can be constructed at compile time, we need to make make_error_code constexpr to enable that feature for our error types.

@vinniefalco
Copy link
Member

Your javadocs need work but this is a long-term problem. From now on please try to make them as descriptive as possible.

@ashtum ashtum force-pushed the zlib-service-refactor branch from c5ba050 to 61bf7a0 Compare September 19, 2024 18:07
@cppalliance-bot
Copy link

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

@ashtum ashtum force-pushed the zlib-service-refactor branch from 61bf7a0 to ec9732f Compare September 19, 2024 19:24
@cppalliance-bot
Copy link

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

@ashtum ashtum force-pushed the zlib-service-refactor branch from ec9732f to 54ea11d Compare September 20, 2024 07:40
@cppalliance-bot
Copy link

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

@ashtum ashtum force-pushed the zlib-service-refactor branch from 54ea11d to d533d2c Compare September 20, 2024 07:51
@cppalliance-bot
Copy link

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

@ashtum ashtum force-pushed the zlib-service-refactor branch from d533d2c to 72beced Compare September 20, 2024 08:10
@cppalliance-bot
Copy link

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

1 similar comment
@ashtum ashtum force-pushed the zlib-service-refactor branch from 72beced to 1c4a5c9 Compare September 20, 2024 11:03
@cppalliance-bot
Copy link

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

@ashtum ashtum force-pushed the zlib-service-refactor branch from 1c4a5c9 to 5db9d14 Compare September 20, 2024 12:32
@cppalliance-bot
Copy link

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

@ashtum ashtum force-pushed the zlib-service-refactor branch from 5db9d14 to a44dfe9 Compare September 20, 2024 12:47
@cppalliance-bot
Copy link

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

1 similar comment
@ashtum ashtum force-pushed the zlib-service-refactor branch from a44dfe9 to 2d5e435 Compare September 20, 2024 14:17
@cppalliance-bot
Copy link

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

@ashtum ashtum force-pushed the zlib-service-refactor branch from 2d5e435 to 9eb2593 Compare September 20, 2024 14:42
@cppalliance-bot
Copy link

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

@ashtum ashtum force-pushed the zlib-service-refactor branch from 9eb2593 to dd5b1c7 Compare September 20, 2024 14:59
@cppalliance-bot
Copy link

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

@ashtum ashtum force-pushed the zlib-service-refactor branch from dd5b1c7 to ce501cb Compare September 20, 2024 16:01
@cppalliance-bot
Copy link

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

@ashtum ashtum merged commit d7453d9 into cppalliance:develop Sep 20, 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