Skip to content

Commit aad3113

Browse files
committed
Partial revert of "Use std::foo_t rather than std::foo in LLVM." in googlebench
Since googlebench builds as c++11, the change there is incorrect and breaks the googlebench build when the STL implementation is strict about std::enable_if_t not being available in lesser c++ versions. partial revert of: 1bd6123 (https://reviews.llvm.org/D74384) Differential Revision: https://reviews.llvm.org/D101583
1 parent df280d1 commit aad3113

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/utils/benchmark/src/sysinfo.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ bool GetSysctl(std::string const& Name, std::string* Out) {
176176
return true;
177177
}
178178

179-
template <class Tp, class = std::enable_if_t<std::is_integral<Tp>::value>>
180-
bool GetSysctl(std::string const &Name, Tp *Out) {
179+
template <class Tp,
180+
class = typename std::enable_if<std::is_integral<Tp>::value>::type>
181+
bool GetSysctl(std::string const& Name, Tp* Out) {
181182
*Out = 0;
182183
auto Buff = GetSysctlImp(Name);
183184
if (!Buff) return false;

0 commit comments

Comments
 (0)