diff options
Diffstat (limited to 'tests/optional')
-rw-r--r-- | tests/optional/driver.cxx | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/tests/optional/driver.cxx b/tests/optional/driver.cxx index 5dd8964..e63c985 100644 --- a/tests/optional/driver.cxx +++ b/tests/optional/driver.cxx @@ -20,7 +20,6 @@ import butl.optional; #endif using namespace std; -using namespace butl; struct redirect { @@ -33,22 +32,12 @@ struct redirect redirect& operator= (const redirect&) = delete; }; -struct command -{ - butl::optional<redirect> err; -}; - int main () { - /*( - command c; - vector<command> cs; - cs.emplace_back (move (c)); -// cs.push_back (move (c)); -*/ - - redirect r; - vector<redirect> rs; + using butl::optional; + + optional<redirect> r; + vector<optional<redirect>> rs; rs.emplace_back (move (r)); } |