Give up with --std=c++11

There are too many distros that use old versions of g++ that don't support it adequately.
This commit is contained in:
Joe Thornber
2013-08-08 10:49:59 +01:00
parent 79f64267b5
commit 0029962f20
10 changed files with 65 additions and 47 deletions

View File

@@ -62,7 +62,7 @@ namespace base {
if (!runs_.size())
return false;
auto it = runs_.lower_bound(run<T>(v));
typename rset::const_iterator it = runs_.lower_bound(run<T>(v));
if (it->begin_ == v)
return true;
@@ -98,7 +98,7 @@ namespace base {
if (runs_.begin() == runs_.end())
replacement.insert(run<T>());
else {
auto b = runs_.begin();
typename rset::const_iterator b = runs_.begin();
maybe last = b->end_;
if (b->begin_)

View File

@@ -19,6 +19,8 @@
#include "persistent-data/space-maps/careful_alloc.h"
#include "persistent-data/space-maps/subtracting_span_iterator.h"
#include <boost/shared_ptr.hpp>
//----------------------------------------------------------------
namespace {
@@ -26,7 +28,7 @@ namespace {
class sm_careful_alloc : public checked_space_map {
public:
typedef std::shared_ptr<sm_careful_alloc> ptr;
typedef boost::shared_ptr<sm_careful_alloc> ptr;
sm_careful_alloc(checked_space_map::ptr sm)
: sm_(sm) {