Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Jun 13, 2018

The C++11 constructor of std::vector that takes an initializer list, is not explicit. Thus, the macro is not required and can be dropped.

Hopefully fixes #13456

@maflcko maflcko added the Tests label Jun 13, 2018
@maflcko maflcko force-pushed the Mf1806-qaVariadicMacro branch from faea6fa to faf52f9 Compare June 13, 2018 13:59
@maflcko
Copy link
Member Author

maflcko commented Jun 13, 2018

@sipsorcery Would you mind testing, since I don't have a MSVC?

@practicalswift
Copy link
Contributor

Concept ACK

@sipsorcery
Copy link
Contributor

sipsorcery commented Jun 13, 2018

utACK (whoops) tACK (msvc).

@maflcko
Copy link
Member Author

maflcko commented Jun 13, 2018

utACK (msvc).

untested (ut) or tested? A tested ack is always preferred ;)

@sipsorcery
Copy link
Contributor

@MarcoFalke sorry should have been a tested ACK. Compiled the PR with msvc and successfully ran the test_bitcoin.exe.

@laanwj
Copy link
Member

laanwj commented Jun 13, 2018

utACK faf52f9

@laanwj laanwj merged commit faf52f9 into bitcoin:master Jun 13, 2018
laanwj added a commit that referenced this pull request Jun 13, 2018
faf52f9 tests: Drop variadic macro (MarcoFalke)

Pull request description:

  The C++11 constructor of `std::vector` that takes an initializer list, is not `explicit`. Thus, the macro is not required and can be dropped.

  Hopefully fixes #13456

Tree-SHA512: 4095ed205f88138a7cd5b14790cc426899966f622a924a9b3f7de646a0d801a48ffb8921da760f1f93d5481298477c8a64dbec291381bb9aa77b075bdd2659f2
@maflcko maflcko deleted the Mf1806-qaVariadicMacro branch June 13, 2018 17:30
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jun 22, 2020
Summary:
faf52f9 tests: Drop variadic macro (MarcoFalke)

Pull request description:

  The C++11 constructor of `std::vector` that takes an initializer list, is not `explicit`. Thus, the macro is not required and can be dropped.

  Hopefully fixes #13456

Tree-SHA512: 4095ed205f88138a7cd5b14790cc426899966f622a924a9b3f7de646a0d801a48ffb8921da760f1f93d5481298477c8a64dbec291381bb9aa77b075bdd2659f2

Backport of Core [[bitcoin/bitcoin#13457 | PR13457]]

Test Plan:
  ninja check

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, jasonbcox

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D6671
ftrader pushed a commit to bitcoin-cash-node/bitcoin-cash-node that referenced this pull request Aug 17, 2020
Summary:
faf52f9 tests: Drop variadic macro (MarcoFalke)

Pull request description:

  The C++11 constructor of `std::vector` that takes an initializer list, is not `explicit`. Thus, the macro is not required and can be dropped.

  Hopefully fixes #13456

Tree-SHA512: 4095ed205f88138a7cd5b14790cc426899966f622a924a9b3f7de646a0d801a48ffb8921da760f1f93d5481298477c8a64dbec291381bb9aa77b075bdd2659f2

Backport of Core [[bitcoin/bitcoin#13457 | PR13457]]

Test Plan:
  ninja check

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, jasonbcox

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D6671
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 28, 2021
faf52f9 tests: Drop variadic macro (MarcoFalke)

Pull request description:

  The C++11 constructor of `std::vector` that takes an initializer list, is not `explicit`. Thus, the macro is not required and can be dropped.

  Hopefully fixes bitcoin#13456

Tree-SHA512: 4095ed205f88138a7cd5b14790cc426899966f622a924a9b3f7de646a0d801a48ffb8921da760f1f93d5481298477c8a64dbec291381bb9aa77b075bdd2659f2
@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.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Variadic macro in mempool_tests.cpp breaking MSVC build

4 participants