--- a/examples/simple-error-model.cc Wed Feb 27 20:48:43 2008 +0100
+++ b/examples/simple-error-model.cc Wed Feb 27 21:41:34 2008 +0100
@@ -45,6 +45,7 @@
#include "ns3/ptr.h"
#include "ns3/config.h"
#include "ns3/uinteger.h"
+#include "ns3/string.h"
#include "ns3/simulator.h"
#include "ns3/nstime.h"
@@ -83,10 +84,10 @@
// Set a few parameters
Config::SetDefault ("RateErrorModel::ErrorRate", Double (0.01));
- Config::SetDefault ("RateErrorModel::ErrorUnit", "EU_PKT");
+ Config::SetDefault ("RateErrorModel::ErrorUnit", String ("EU_PKT"));
Config::SetDefault ("OnOffApplication::PacketSize", Uinteger (210));
- Config::SetDefault ("OnOffApplication::DataRate", MakeDataRate ("448kb/s"));
+ Config::SetDefault ("OnOffApplication::DataRate", DataRate ("448kb/s"));
// Allow the user to override any of the defaults and the above