summaryrefslogtreecommitdiff
path: root/examples/variant-11.yy
diff options
context:
space:
mode:
Diffstat (limited to 'examples/variant-11.yy')
-rw-r--r--examples/variant-11.yy2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/variant-11.yy b/examples/variant-11.yy
index a9454a1e..d378f300 100644
--- a/examples/variant-11.yy
+++ b/examples/variant-11.yy
@@ -66,7 +66,7 @@
make_string_uptr (Args&&... args)
{
// std::make_unique is C++14.
- return std::unique_ptr<std::string>(new std::string{std::forward<Args>(args)...});
+ return string_uptr (new std::string{std::forward<Args> (args)...});
}
// Convert to string.