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

Fix iterator version of basic_fields::erase #994

Closed
wants to merge 1 commit into from

Conversation

inetic
Copy link
Contributor

@inetic inetic commented Jan 22, 2018

When used, was causing compile errors.

Not sure whether const_casting here is the best approach,
please let me know if you can think of a better solution and I'll
change it.

When used, was causing compile errors.
@vinniefalco
Copy link
Member

Not sure whether const_casting here is the best approach

@pdimov suggests it is correct:

  • a precondition of deallocate is that the pointer came from allocate
  • allocate gives non-const pointers
  • therefore, the element can't have been const to begin with, and the const_cast is safe

@codecov
Copy link

codecov bot commented Jan 23, 2018

Codecov Report

Merging #994 into develop will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #994      +/-   ##
===========================================
- Coverage    95.45%   95.43%   -0.02%     
===========================================
  Files          106      106              
  Lines        10601    10614      +13     
===========================================
+ Hits         10119    10130      +11     
- Misses         482      484       +2
Impacted Files Coverage Δ
include/boost/beast/http/impl/fields.ipp 97.75% <100%> (+0.02%) ⬆️
include/boost/beast/http/fields.hpp 92.3% <0%> (-7.7%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be14786...bc90b07. Read the comment docs.

@inetic
Copy link
Contributor Author

inetic commented Jan 24, 2018

Thanks for the info, and happy it's OK. Out of curiosity, would you know what's happening with Travis? The Linux builds took about a day to start and the Mac build has been hanging there for more than two days now.

@pdimov
Copy link
Member

pdimov commented Jan 24, 2018

Travis has a ~3000 macOS job backlog, https://www.traviscistatus.com/

And the queued macOS jobs reduce the Linux parallelism from 5 to 3, so even Linux slows down.

vinniefalco pushed a commit to vinniefalco/beast that referenced this pull request Jan 24, 2018
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