1. 30 Jul, 2024 2 commits
    • PR #1735: Avoid `int` to `bool` conversion warning · 983652e4
      Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/1735
      
      If asan is enabled with VS, the following warning is issued by the compiler:
      
      1>C:\work\abseil-cpp\absl\debugging\leak_check.cc(46,68): error C4800: Implicit conversion from 'int' to bool. Possible information loss
      1>    C:\work\abseil-cpp\absl\debugging\leak_check.cc(46,68):
      1>    consider using explicit cast or comparison to 0 to avoid this warning
      Merge 9a6a677add58a9cd31b2381f6bdb5328c9b03c02 into 8cdf4821
      
      Merging this change closes #1735
      
      COPYBARA_INTEGRATE_REVIEW=https://github.com/abseil/abseil-cpp/pull/1735 from pps83:master-int-bool-warn 9a6a677add58a9cd31b2381f6bdb5328c9b03c02
      PiperOrigin-RevId: 657591557
      Change-Id: I709424b5064160860186a42f854a1856465e80d0
      Pavel P committed
    • Add `absl::swap` functions for `*_hash_*` to avoid calling `std::swap` · 13ec8d5d
      We already have `swap(raw_hash_set&, raw_hash_set&)` thus we may expect argument dependent lookup will use that function in following code snippet:
      ```
      absl::flat_hash_map<...> x, y;
      using std::swap;
      swap(x, y);
      ```
      But in practice `std::swap` will be called because `swap(raw_hash_set&, raw_hash_set&)` requires derived-to-base conversion while `std::swap` doesn't (it is a function template), thus `std::swap` is picked by compiler.
      
      To avoid this, we need a `swap` implementations which accept the exact `*_hash_*` types which is more preferred over `std::swap`.
      
      Note that this will fix issues#1571.
      
      PiperOrigin-RevId: 657419420
      Change-Id: Id003b2129187ce2d4583029789ff96247d1490de
      Abseil Team committed
  2. 29 Jul, 2024 2 commits
  3. 26 Jul, 2024 2 commits
  4. 25 Jul, 2024 5 commits
  5. 24 Jul, 2024 1 commit
  6. 23 Jul, 2024 1 commit
  7. 22 Jul, 2024 2 commits
  8. 18 Jul, 2024 4 commits
  9. 15 Jul, 2024 3 commits
  10. 14 Jul, 2024 1 commit
  11. 11 Jul, 2024 4 commits
  12. 10 Jul, 2024 3 commits
  13. 09 Jul, 2024 1 commit
  14. 07 Jul, 2024 1 commit
  15. 04 Jul, 2024 1 commit
  16. 03 Jul, 2024 2 commits
  17. 02 Jul, 2024 2 commits
  18. 01 Jul, 2024 3 commits