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 UB due is_trivially_default_constructible specializations #284

Conversation

mloskot
Copy link
Member

@mloskot mloskot commented Apr 15, 2019

C++11 / 20.11.2 Header <type_traits> synopsis
1 The behavior of a program that adds specializations for any
of the class templates defined in this subclause is undefined
unless otherwise specified.

The specializations are not used anywhere, so they are safe to remove
without providing a replacement.

References

Fixes #283

Tasklist

  • Review
  • All CI builds and checks have passed

   C++11 / 20.11.2 Header <type_traits> synopsis
   1 The behavior of a program that adds specializations for any
   of the class templates defined in this subclause is undefined
   unless otherwise specified.

The specializations are not used anywhere, so they are safe to remove
without providing a replacement.

Fixes boostorg#283
Copy link
Member

@stefanseefeld stefanseefeld left a comment

Choose a reason for hiding this comment

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

without hesitation ! :-)

@mloskot
Copy link
Member Author

mloskot commented Apr 15, 2019

All built for me locally with GCC 7.3, so I'm hopeful :)

@mloskot
Copy link
Member Author

mloskot commented Apr 15, 2019

My private Travis for GIL is all green!
https://travis-ci.org/mloskot/gil/builds/520437453

@mloskot mloskot self-assigned this Apr 15, 2019
@mloskot mloskot added cat/refactoring Any nonfunctional changes and removed cat/refactoring Any nonfunctional changes labels Apr 15, 2019
@mloskot mloskot added this to the Boost 1.71 milestone Apr 15, 2019
@mloskot mloskot merged commit 555c4cc into boostorg:develop Apr 15, 2019
@mloskot mloskot deleted the ml/remove-is_trivially_default_constructible-specialization branch April 15, 2019 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat/bug But reports and bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undefined behaviour due to is_trivially_default_constructible specialization
2 participants