diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-03-24 11:26:10 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-03-24 12:07:51 +0300 |
commit | dd49798056b38a39410ffe209e55fad68fc17a60 (patch) | |
tree | 08a874dad090437469d5e00614f025133f981f66 | |
parent | 723a15c5390d0c5eb42f2082fcedb7262e7bc856 (diff) |
Fix test MSVC compilation failure
-rw-r--r-- | tests/manifest/driver.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/manifest/driver.cxx b/tests/manifest/driver.cxx index bf97c42..56c886d 100644 --- a/tests/manifest/driver.cxx +++ b/tests/manifest/driver.cxx @@ -143,7 +143,10 @@ main (int argc, char* argv[]) { assert (argc == 4); - optional<string> t (*argv[2] != '\0' ? argv[2] : optional<string> ()); + optional<string> t (*argv[2] != '\0' + ? string (argv[2]) + : optional<string> ()); + package_name n (argv[3]); cout << package_manifest::effective_type (t, n) << endl; |