)]}'
{
  "commit": "a99acb577f48a3e0b2564ea673562c383b5620fa",
  "tree": "af29cdadebd9673233954b4e21e59fb837c4cee4",
  "parents": [
    "c0788c7c5bfdb7a8986893504673414766f47bab"
  ],
  "author": {
    "name": "Victor Derks",
    "email": "vbaderks@gmail.com",
    "time": "Thu Feb 20 11:32:27 2025 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Thu Feb 20 11:33:17 2025 -0800"
  },
  "message": "PR #1830: C++17 improvement: use if constexpr in internal/hash.h\n\nImported from GitHub PR https://github.com/abseil/abseil-cpp/pull/1830\n\nAs the minimal supported C++ version of Abseil is now C++17, it has become possible to use if constexpr statements.\nApply usage of if constexpr in the header file hash.h.\n\nBenefits of using if constexpr are:\n- Improved readability: explicit that the expression will be evaluated at compile time.\n- Required code is generated during compile phase instead of selected in optimizer phase. Improved guarantee that if statement is not checked at runtime.\n- Prevents MSVC warning C4127: conditional expression is constant (when this warning is explicitly enabled when building Abseil with MSVC).\n\nRemark: there are other header files that could be updated for if constexpr. This PR only addresses hash.h as recommended by the contributing  guidelines to keep PRs small.\n\nThank you for your contribution to Abseil!\n\nBefore submitting this PR, please be sure to read our [contributing\nguidelines](https://github.com/abseil/abseil-cpp/blob/master/CONTRIBUTING.md).\n\nIf you are a Googler, please also note that it is required that you send us a\nPiper CL instead of using the GitHub pull-request process. The code propagation\nprocess will deliver the change to GitHub.\n\nMerge a41f7652e5ae2b7ab54462eafbf8dc52428fd7e6 into dc1ec89b0f99cda973f4ac428812c8008ca6f956\n\nMerging this change closes #1830\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/abseil/abseil-cpp/pull/1830 from vbaderks:constexpr-hash-internal a41f7652e5ae2b7ab54462eafbf8dc52428fd7e6\nPiperOrigin-RevId: 729188454\nChange-Id: I124f5f352bc6caf9dd58dd6075404783172c9941\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8d6859ef829d88f03663e38ca3cf2ed3c362d1e0",
      "old_mode": 33188,
      "old_path": "absl/hash/internal/hash.h",
      "new_id": "8ca7d8436305f91fd4143f23889bf22e29928b14",
      "new_mode": 33188,
      "new_path": "absl/hash/internal/hash.h"
    }
  ]
}
