From 7edc4328bfd5eee557108ebdb4243ca06914c41e Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 17 Mar 2015 22:56:47 +0100 Subject: o cout and unique_ptr became complicated. o Updating lots of code to the latest api. --- apps/sm-serial-read.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/sm-serial-read.cpp') diff --git a/apps/sm-serial-read.cpp b/apps/sm-serial-read.cpp index c52e7f9..0d0bfe6 100644 --- a/apps/sm-serial-read.cpp +++ b/apps/sm-serial-read.cpp @@ -123,14 +123,14 @@ public: } shared_ptr output; - unique_ptr outputStream = unique_ptr(&cout); + shared_ptr outputStream = shared_ptr(&cout, noop_deleter); if (format == Format::JSON) { - output = make_shared(std::move(outputStream), dict); + output = make_shared(outputStream, dict); } else if (format == Format::SQL) { - output = make_shared(std::move(outputStream), dict, "raw"); + output = make_shared(outputStream, dict, "raw"); } else if (format == Format::PLAIN) { - output = make_shared(std::move(outputStream), dict); + output = make_shared(outputStream, dict); } else { cerr << "Unsupported format: " << boost::lexical_cast(format) << endl; return EXIT_FAILURE; -- cgit v1.2.3