Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Apr 28, 2016

  • Bitwise logic combined with < with undefined signedness will potentially result in undefined behavior. Fix this by defining the type as a c++11 typed enum. Fixes Signedness of an Enum is undefined in standard C++ #6017.
  • auto_ptr → unique_ptr: Change the few occurrences of the deprecated auto_ptr to c++11 unique_ptr. Silences the deprecation warnings.

laanwj added 2 commits April 28, 2016 13:35
Bitwise logic combined with `<` with undefined signedness will
potentially results in undefined behavior. Fix this by defining the type
as a c++11 typed enum.

Fixes bitcoin#6017.
Change the few occurrences of the deprecated `auto_ptr` to c++11 `unique_ptr`.
Silences the deprecation warnings.

Also add a missing `std::` for consistency.
@randy-waterhouse
Copy link
Contributor

ACK.

@jonasschnelli
Copy link
Contributor

utACK 07e4edb

@mruddy
Copy link
Contributor

mruddy commented Apr 28, 2016

utACK 07e4edb

@paveljanik
Copy link
Contributor

ACK 07e4edb

@theuni
Copy link
Member

theuni commented Apr 28, 2016

utACK 07e4edb

@fanquake
Copy link
Member

fanquake commented May 1, 2016

utACK 07e4edb

@btcdrak
Copy link
Contributor

btcdrak commented May 1, 2016

utACK 07e4edb

@dcousens
Copy link
Contributor

dcousens commented May 2, 2016

utACK 07e4edb

@laanwj laanwj merged commit 07e4edb into bitcoin:master May 2, 2016
laanwj added a commit that referenced this pull request May 2, 2016
07e4edb auto_ptr → unique_ptr (Wladimir J. van der Laan)
073225c chain: define enum used as bit field as uint32_t (Wladimir J. van der Laan)
codablock pushed a commit to codablock/dash that referenced this pull request Dec 20, 2017
07e4edb auto_ptr → unique_ptr (Wladimir J. van der Laan)
073225c chain: define enum used as bit field as uint32_t (Wladimir J. van der Laan)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Signedness of an Enum is undefined in standard C++

9 participants