From 874026e26b56d10b0bb9540180b564b36e685a17 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Jun 2020 15:29:41 +0200 Subject: Fix --- tests/optional/driver.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/optional/driver.cxx') diff --git a/tests/optional/driver.cxx b/tests/optional/driver.cxx index e63c985..5d72f08 100644 --- a/tests/optional/driver.cxx +++ b/tests/optional/driver.cxx @@ -21,15 +21,15 @@ import butl.optional; using namespace std; -struct redirect +struct move_only { - redirect () = default; + move_only () = default; - redirect (redirect&&) = default; - redirect& operator= (redirect&&) = default; + move_only (move_only&&) = default; + move_only& operator= (move_only&&) = default; - redirect (const redirect&) = delete; - redirect& operator= (const redirect&) = delete; + move_only (const move_only&) = delete; + move_only& operator= (const move_only&) = delete; }; int @@ -37,7 +37,7 @@ main () { using butl::optional; - optional r; - vector> rs; + optional r; + vector> rs; rs.emplace_back (move (r)); } -- cgit v1.1