@@ -21,12 +21,12 @@
// <http://www.gnu.org/licenses/>.
-#include <functional> // std::unary_function, std::ref
+#include <functional> // std::ref
#include <thread>
#include <system_error>
#include <testsuite_hooks.h>
-struct copyable : public std::unary_function<std::thread::id&, void>
+struct copyable
{
copyable() = default;
~copyable() = default;
@@ -84,5 +84,4 @@ void test03()
int main()
{
test03();
- return 0;
}
@@ -21,12 +21,12 @@
// <http://www.gnu.org/licenses/>.
-#include <functional> // std::unary_function, std::ref, std::cref
+#include <functional> // std::ref, std::cref
#include <thread>
#include <system_error>
#include <testsuite_hooks.h>
-struct noncopyable : std::unary_function<std::thread::id&, void>
+struct noncopyable
{
noncopyable() = default;
~noncopyable() = default;
@@ -21,12 +21,12 @@
// <http://www.gnu.org/licenses/>.
-#include <functional> // std::unary_function, std::ref
+#include <functional> // std::ref
#include <thread>
#include <system_error>
#include <testsuite_hooks.h>
-struct nonconst : public std::unary_function<std::thread::id&, void>
+struct nonconst
{
void operator()(std::thread::id& id)
{