--- a/examples/routing/manet-routing-compare.cc Thu Sep 27 13:29:03 2012 -0400
+++ b/examples/routing/manet-routing-compare.cc Fri Sep 28 12:22:18 2012 -0700
@@ -378,9 +378,8 @@
//AsciiTraceHelper ascii;
//Ptr<OutputStreamWrapper> osw = ascii.CreateFileStream ( (tr_name + ".tr").c_str());
//wifiPhy.EnableAsciiAll (osw);
- std::ofstream os;
- os.open ((tr_name + ".mob").c_str ());
- MobilityHelper::EnableAsciiAll (os);
+ AsciiTraceHelper ascii;
+ MobilityHelper::EnableAsciiAll (ascii.CreateFileStream (tr_name + ".mob"));
//Ptr<FlowMonitor> flowmon;
//FlowMonitorHelper flowmonHelper;