Fix missing header in sync.h #18357

pull promag wants to merge 1 commits into bitcoin:master from promag:2020-03-missing-include changing 1 files +2 −2
  1. promag commented at 10:48 PM on March 15, 2020: member

    std::string is referenced in sync.h but the relevant header is not explicitly included as required by current guideline. Furthermore on osx 10.14.6 with clang-900.0.31 the following error occurs:

    In file included from threadinterrupt.cpp:6:
    In file included from ./threadinterrupt.h:8:
    ./sync.h:206:21: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >'
            std::string lockname;
    
  2. Fix missing header in sync.h 686c5456f2
  3. practicalswift commented at 11:16 PM on March 15, 2020: contributor

    ACK 686c5456f2fcf7e301907223d16a85f7eb378c6c

  4. hebasto commented at 8:57 AM on March 16, 2020: member

    @promag

    My macOS 10.14 reports:

    $ clang --version
    Apple LLVM version 10.0.1 (clang-1001.0.46.4)
    Target: x86_64-apple-darwin18.0.0
    Thread model: posix
    InstalledDir: /Library/Developer/CommandLineTools/usr/bin
    

    ... on osx 10.14.6 with clang-900.0.31...

    Is your clang from Apple or from brew?

  5. promag commented at 9:44 AM on March 16, 2020: member

    @hebasto

    $  clang -v
    Apple LLVM version 9.0.0 (clang-900.0.31)
    Target: x86_64-apple-darwin18.7.0
    Thread model: posix
    InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
    
  6. laanwj commented at 11:29 AM on March 16, 2020: member

    ACK 686c5456f2fcf7e301907223d16a85f7eb378c6c

  7. fanquake merged this on Mar 16, 2020
  8. fanquake closed this on Mar 16, 2020

  9. promag deleted the branch on Mar 16, 2020
  10. MarkLTZ referenced this in commit 8823f65197 on Apr 7, 2020
  11. MarkLTZ referenced this in commit 0a1571d657 on Apr 7, 2020
  12. deadalnix referenced this in commit f602c2627c on Jan 8, 2021
  13. PastaPastaPasta referenced this in commit ef1d3373c0 on Jun 27, 2021
  14. PastaPastaPasta referenced this in commit c0f33a734e on Jun 28, 2021
  15. PastaPastaPasta referenced this in commit 95afbdc069 on Jun 29, 2021
  16. PastaPastaPasta referenced this in commit e8ebaaf459 on Jul 1, 2021
  17. PastaPastaPasta referenced this in commit dbb22f6fd9 on Jul 1, 2021
  18. PastaPastaPasta referenced this in commit 3b20481aec on Jul 14, 2021
  19. DrahtBot locked this on Feb 15, 2022

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-22 00:14 UTC

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