From 702cae1e762dc6f2f9d31777db04e1adbdb36697 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 1 Jun 2021 18:32:49 -0700 Subject: Export of internal Abseil changes -- 2c81c02d2b68303134e777f31921679ab87a2639 by Derek Mauro : Use getentropy() to get seed material when using glibc >= 2.25 getentropy() uses the getrandom syscall on Linux to avoid file descriptors. It is never interputed (EINTR) and uses the same source as /dev/urandom. https://man7.org/linux/man-pages/man3/getentropy.3.html getrandom has been in the Linux since kernel 3.17 When unavailable (ENOSYS), fallback to /dev/urandom. PiperOrigin-RevId: 376962620 -- 81cd41372a04eda400a2e3be53c239c0dac6bdf3 by Abseil Team : Make FunctionRef no longer have -Wdeprecated-copy warnings from Clang by defaulting the copy constructor. This is needed because the assignment operator is deleted. Fixes #948 PiperOrigin-RevId: 376928548 GitOrigin-RevId: 2c81c02d2b68303134e777f31921679ab87a2639 Change-Id: I0abb18052ffff5dd1448f0b68edbb668045335f0 --- absl/functional/function_ref.h | 1 + 1 file changed, 1 insertion(+) (limited to 'absl/functional') diff --git a/absl/functional/function_ref.h b/absl/functional/function_ref.h index 6e03ac2e..5790a652 100644 --- a/absl/functional/function_ref.h +++ b/absl/functional/function_ref.h @@ -122,6 +122,7 @@ class FunctionRef { // To help prevent subtle lifetime bugs, FunctionRef is not assignable. // Typically, it should only be used as an argument type. FunctionRef& operator=(const FunctionRef& rhs) = delete; + FunctionRef(const FunctionRef& rhs) = default; // Call the underlying object. R operator()(Args... args) const { -- cgit v1.2.3