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
add any_allocator #112
add any_allocator #112
Conversation
247bb58
to
3c6224f
Compare
3c6224f
to
6203673
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
6203673
to
da267e8
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
da267e8
to
8f661be
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
Codecov Report
@@ Coverage Diff @@
## develop #112 +/- ##
===========================================
+ Coverage 96.17% 96.22% +0.05%
===========================================
Files 103 107 +4
Lines 5406 5487 +81
===========================================
+ Hits 5199 5280 +81
Misses 207 207
Continue to review full report at Codecov.
|
8f661be
to
41ad53e
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
41ad53e
to
ed7b9b2
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
ed7b9b2
to
5bbbcc2
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
5bbbcc2
to
81440d7
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
a42432a
to
771ec8b
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
59f3d51
to
c00ae2f
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
include/boost/url/any_allocator.hpp
Outdated
@par Specification | ||
@li <a | ||
href="https://en.cppreference.com/w/cpp/named_req/Allocator" | ||
>Allocator (cppreference.com)</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes you have to break the rules. In this case I would format it thusly:
@par Specification
@li <a href="https://en.cppreference.com/w/cpp/named_req/Allocator"
>Allocator (cppreference.com)</a>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if it goes on "forever"? That's more than 100 chars.
#endif | ||
|
||
} // namespace urls | ||
} // namespace boost |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't bother putting the word "namespace" because it doesn't add any information, but if you feel better with it there, I won't complain. See:
https://github.com/boostorg/beast/blob/5bdd1efb8be740bb5425adc054c990818134f3e2/include/boost/beast/http/basic_parser.hpp#L691
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So can I leave the word "namespace"? That would be one less thing to get wrong because it's how it's generated automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can leave it in if you want, but I think you will over time learn that these "automatic" formatting tools are going to cause you more work than they relieve.
template <std::size_t N> | ||
typename std::enable_if < | ||
N< alignof(max_align_t), void*>::type | ||
try_allocate_aligned(std::size_t n, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something weird is going on here with the margin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be larger? That was my fault. It was trying to do that triangle and trapeziums, etc...
c00ae2f
to
432f0e1
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
8f09c73
to
ba98fc9
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
ba98fc9
to
46da142
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
46da142
to
8640a18
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
8640a18
to
6c41fa6
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
6c41fa6
to
a6bcad9
Compare
An automated preview of the documentation is available at https://112.url.prtest.cppalliance.org/libs/url/doc/html/index.html |
A type-erased allocator with shared ownership that satisfies the requirements for Allocator.