[all-commits] [llvm/llvm-project] c94eb0: Fix compilation of Google Test in C++20 mode
Evgeny Mandrikov via All-commits
all-commits at lists.llvm.org
Mon Dec 6 09:08:00 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c94eb0f9ef5597bd1b3b0efda4df53f606a1fe13
https://github.com/llvm/llvm-project/commit/c94eb0f9ef5597bd1b3b0efda4df53f606a1fe13
Author: Evgeny Mandrikov <mandrikov at gmail.com>
Date: 2021-12-06 (Mon, 06 Dec 2021)
Changed paths:
M llvm/utils/unittest/googlemock/include/gmock/gmock-actions.h
Log Message:
-----------
Fix compilation of Google Test in C++20 mode
Without this patch when using CMAKE_CXX_STANDARD=20
and MSVC 19.30.30705.0 compilation of unit tests
fails with
llvm\utils\unittest\googlemock\include\gmock/gmock-actions.h(828): error C2039: 'result_of': is not a member of 'std'
Patch is taken from Google Test:
https://github.com/google/googletest/commit/61f010d703b32de9bfb20ab90ece38ab2f25977f
Do not use std::result_of as it was removed in C++20.
Differential Revision: https://reviews.llvm.org/D115163
More information about the All-commits
mailing list