aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-18 19:11:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-18 19:11:18 +0200
commitc24485df9d89f8ec6808de50e1b45ef9604fbe83 (patch)
tree3c524f8a391e99e32617813939db88aa78340493 /tests
parent1e82966d2b4e9925cd4219def09fcec5bf4c6cff (diff)
Make sure std::vector can move paths
Diffstat (limited to 'tests')
-rw-r--r--tests/path/driver.cxx7
1 files changed, 7 insertions, 0 deletions
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 <cassert>
#include <iostream>
+#include <type_traits>
#include <butl/path>
#include <butl/path-io>
@@ -14,6 +15,12 @@ using namespace butl;
int
main ()
{
+ static_assert (is_nothrow_destructible<path>::value, "");
+ static_assert (is_nothrow_move_constructible<path>::value, "");
+
+ static_assert (is_nothrow_destructible<dir_path>::value, "");
+ static_assert (is_nothrow_move_constructible<dir_path>::value, "");
+
assert (path ("/").string () == "/");
assert (path ("//").string () == "/");
assert (path ("/tmp/foo/").string () == "/tmp/foo");