Removed preprocessor condition preventing building of script tests
Linking error: Removed erroneous _MSC_VER condition preventing correct linking #4947
pull ENikS wants to merge 1 commits into bitcoin:master from ENikS:msvc_impairment changing 1 files +0 −2-
ENikS commented at 10:33 PM on September 19, 2014: contributor
-
Fixing condition 'sabotaging' MSVC build 6134b43ba9
- ENikS renamed this:
Removed erroneous _MSC_VER condition
Linking error: Removed erroneous _MSC_VER condition preventing correct linking
on Sep 19, 2014 -
theuni commented at 12:25 AM on September 20, 2014: member
Seems strange that we need both of these. This construction isn't to spec, so if it works it means the compiler allows it. In that case, I should think it would work both ways. I suspect that only the const iterator ctor is necessary.
Either way, I don't see the downside if it gets msvc building (and passes tests there).
-
sipa commented at 1:42 AM on September 20, 2014: member
utACK
-
laanwj commented at 9:39 AM on September 20, 2014: member
utACK @theuni what is not to spec about this code? These both look perfectly fine to me:
CScript(const_iterator pbegin, const_iterator pend) : std::vector<unsigned char>(pbegin, pend) { } CScript(const unsigned char* pbegin, const unsigned char* pend) : std::vector<unsigned char>(pbegin, pend) { }You could of course shave one function off by using a templated constructor as std::vector itself has,
template <class InputIterator> vector (InputIterator first, InputIterator last) {...} -
BitcoinPullTester commented at 5:18 PM on September 21, 2014: none
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4947_feba5595963c2a18462964cdb2d4d18f7eef16aa/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
- laanwj merged this on Sep 22, 2014
- laanwj closed this on Sep 22, 2014
- laanwj referenced this in commit 321fd7dbee on Sep 22, 2014
- ENikS deleted the branch on Sep 22, 2014
-
theuni commented at 6:21 PM on September 22, 2014: member
@laanwj nevermind, seems you're right. I had this in mind: https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.iterator_as_pod , but we're doing the opposite here.
- DrahtBot locked this on Sep 8, 2021