// Copyright 2019 Google LLC. All Rights Reserved. This file and proprietary // source code may only be used and distributed under the Widevine Master // License Agreement. #ifndef CAS_UTIL_H_ #define CAS_UTIL_H_ #include #if __cplusplus >= 201402L || \ (defined __cpp_lib_make_unique && __cpp_lib_make_unique >= 201304L) || \ (defined(_MSC_VER) && _MSC_VER >= 1900) using std::make_unique; #else template std::unique_ptr make_unique(Args&&... args) { return std::unique_ptr(new T(std::forward(args)...)); } #endif #endif // CAS_UTIL_H_