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
  1. ENikS commented at 10:33 PM on September 19, 2014: contributor

    Removed preprocessor condition preventing building of script tests

  2. Fixing condition 'sabotaging' MSVC build 6134b43ba9
  3. ENikS renamed this:
    Removed erroneous _MSC_VER condition
    Linking error: Removed erroneous _MSC_VER condition preventing correct linking
    on Sep 19, 2014
  4. 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).

  5. sipa commented at 1:42 AM on September 20, 2014: member

    utACK

  6. 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) {...}
    
  7. 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.

  8. laanwj merged this on Sep 22, 2014
  9. laanwj closed this on Sep 22, 2014

  10. laanwj referenced this in commit 321fd7dbee on Sep 22, 2014
  11. ENikS deleted the branch on Sep 22, 2014
  12. 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.

  13. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-18 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me