From c24485df9d89f8ec6808de50e1b45ef9604fbe83 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2015 19:11:18 +0200 Subject: Make sure std::vector can move paths --- tests/path/driver.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/path') diff --git a/tests/path/driver.cxx b/tests/path/driver.cxx index 8fbd134..c83fd12 100644 --- a/tests/path/driver.cxx +++ b/tests/path/driver.cxx @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -14,6 +15,12 @@ using namespace butl; int main () { + static_assert (is_nothrow_destructible::value, ""); + static_assert (is_nothrow_move_constructible::value, ""); + + static_assert (is_nothrow_destructible::value, ""); + static_assert (is_nothrow_move_constructible::value, ""); + assert (path ("/").string () == "/"); assert (path ("//").string () == "/"); assert (path ("/tmp/foo/").string () == "/tmp/foo"); -- cgit v1.1