From 2dd4b9e3a34c3c94fd475de7472e7244e83a48fa Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 20:33:46 +0000 Subject: sync fixes --- anyctr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'anyctr.cpp') diff --git a/anyctr.cpp b/anyctr.cpp index 51b79aa..5eb8add 100644 --- a/anyctr.cpp +++ b/anyctr.cpp @@ -89,8 +89,11 @@ void createConnection(const std::string & remote_host, u_int16_t remote_port, Co const SyncCommand scom(cl,mux); const SyncCommand scom2 (prefix); oa << scom; - oa << scom2; std::cout << sout.str() << std::endl; + std::ostringstream sout2; + boost::archive::text_oarchive oa2(sout2); + oa2 << scom2; + std::cout << sout2.str() << std::endl; } int main(int argc, char* argv[]) -- cgit v1.2.3