From ca420e49fc97983c2b49f42823bba68e3af26998 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 3 Jan 2018 13:37:04 +0000 Subject: Replace TypeStaticIf<> with std::conditional<> (C++11). Test: m Change-Id: I7052da55bfe4d69b2ac62965689b89e4f8548056 --- runtime/base/allocator.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'runtime/base/allocator.h') diff --git a/runtime/base/allocator.h b/runtime/base/allocator.h index 99cdb49984..3cedb66abe 100644 --- a/runtime/base/allocator.h +++ b/runtime/base/allocator.h @@ -17,10 +17,11 @@ #ifndef ART_RUNTIME_BASE_ALLOCATOR_H_ #define ART_RUNTIME_BASE_ALLOCATOR_H_ +#include + #include "atomic.h" #include "base/macros.h" #include "base/mutex.h" -#include "base/type_static_if.h" namespace art { @@ -147,9 +148,9 @@ class TrackingAllocatorImpl : public std::allocator { template // C++ doesn't allow template typedefs. This is a workaround template typedef which is // TrackingAllocatorImpl if kEnableTrackingAllocator is true, std::allocator otherwise. -using TrackingAllocator = typename TypeStaticIf, - std::allocator>::type; +using TrackingAllocator = typename std::conditional, + std::allocator>::type; } // namespace art -- cgit v1.2.3-59-g8ed1b