From dd49798056b38a39410ffe209e55fad68fc17a60 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 24 Mar 2023 11:26:10 +0300 Subject: Fix test MSVC compilation failure --- tests/manifest/driver.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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 t (*argv[2] != '\0' ? argv[2] : optional ()); + optional t (*argv[2] != '\0' + ? string (argv[2]) + : optional ()); + package_name n (argv[3]); cout << package_manifest::effective_type (t, n) << endl; -- cgit v1.1