|
From: | TEMPELAAR Erik |
Subject: | [certi-dev] Missing copy constructor for std::ostream |
Date: | Mon, 8 Aug 2016 14:10:19 +0000 |
Hi, We’ve been using Certi 3.5.0 on Windows for quite some time and we’re currently researching upgrading our IDE from VS2010 to VS2015. I’ve successfully applied some commits (793ce46099597733ad7fcd1466228bfc82e5cd29 & fe2375ac15510feec03bb4fd6e1780f4430fb6bb) from master, but Certi fails to compile. Several methods in M_Classes.cc and NM_Classes.cc give errors. This is because in C++11 the copy constructor for std::ostream is deleted. (see here:
http://en.cppreference.com/w/cpp/io/basic_ostream/basic_ostream) I could stream the contents (rdbuf) of an ostream into a stringstream and stream the stream of the stringstream into the ostream again, but this sounds inefficient and troublesome. std::stringstream ss; ss << interactionClasses[i].show(out).rdbuf(); out << ss.str(); Anyone else ran into this issue? Any pointers on how to resolve this properly? Kind regards, Erik Tempelaar Herculesplein 24 |
[Prev in Thread] | Current Thread | [Next in Thread] |