aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-26 15:29:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-26 15:29:51 +0200
commit874026e26b56d10b0bb9540180b564b36e685a17 (patch)
treeaa37c5235b00d5126a3f841b82247b419dc5c46a /tests
parenteac178a2dea0857d91838b54844e74285b5957c6 (diff)
Diffstat (limited to 'tests')
-rw-r--r--tests/optional/driver.cxx16
1 files changed, 8 insertions, 8 deletions
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<redirect> r;
- vector<optional<redirect>> rs;
+ optional<move_only> r;
+ vector<optional<move_only>> rs;
rs.emplace_back (move (r));
}