Make sure code compiles on Ubuntu 12.04 with boost 1.46
Work with permissions in boost::filesystem was introduced in boost 1.49
diff --git a/ccnx/ccnx-discovery.cpp b/ccnx/ccnx-discovery.cpp
index afb0307..e6c4e84 100644
--- a/ccnx/ccnx-discovery.cpp
+++ b/ccnx/ccnx-discovery.cpp
@@ -22,12 +22,12 @@
TaggedFunction::GetRandomTag()
{
//boost::random::random_device rng;
- boost::random::uniform_int_distribution<> dist(0, CHAR_SET.size() - 1);
+ //boost::random::uniform_int_distribution<> dist(0, CHAR_SET.size() - 1);
ostringstream oss;
- for (int i = 0; i < DEFAULT_TAG_SIZE; i++)
- {
+ //for (int i = 0; i < DEFAULT_TAG_SIZE; i++)
+ //{
//oss << CHAR_SET[dist(rng)];
- }
+ //}
return oss.str();
}
diff --git a/ccnx/ccnx-discovery.h b/ccnx/ccnx-discovery.h
index 959167a..b03a937 100644
--- a/ccnx/ccnx-discovery.h
+++ b/ccnx/ccnx-discovery.h
@@ -28,8 +28,7 @@
#include "scheduler.h"
#include <boost/shared_ptr.hpp>
#include <boost/function.hpp>
-#include <boost/random/random_device.hpp>
-#include <boost/random/uniform_int_distribution.hpp>
+#include <boost/random.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/locks.hpp>
#include <list>