certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-dev] Missing copy constructor for std::ostream


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
Software Engineer

 

Herculesplein 24
3584 AA Utrecht
The Netherlands
Tel. : +31 (0)88 8275000
Mob. : +31 (0)6 13 47 35 79
address@hidden
www.altran.nl

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]