boost-176.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. diff --git a/src/expr.cc b/src/expr.cc
  2. index c8945d3..ad2589a 100644
  3. --- a/src/expr.cc
  4. +++ b/src/expr.cc
  5. @@ -278,7 +278,7 @@ value_t expr_value(expr_t::ptr_op_t op)
  6. value_t source_command(call_scope_t& args)
  7. {
  8. std::istream * in = NULL;
  9. - scoped_ptr<ifstream> stream;
  10. + std::unique_ptr<ifstream> stream;
  11. string pathname;
  12. if (args.has(0)) {
  13. diff --git a/src/format.h b/src/format.h
  14. index 15431cf..57f3650 100644
  15. --- a/src/format.h
  16. +++ b/src/format.h
  17. @@ -65,7 +65,7 @@ class format_t : public expr_base_t<string>, public noncopyable
  18. std::size_t min_width;
  19. std::size_t max_width;
  20. variant<string, expr_t> data;
  21. - scoped_ptr<struct element_t> next;
  22. + std::unique_ptr<struct element_t> next;
  23. element_t() throw()
  24. : supports_flags<>(), type(STRING), min_width(0), max_width(0) {
  25. @@ -103,7 +103,7 @@ class format_t : public expr_base_t<string>, public noncopyable
  26. void dump(std::ostream& out) const;
  27. };
  28. - scoped_ptr<element_t> elements;
  29. + std::unique_ptr<element_t> elements;
  30. public:
  31. static enum elision_style_t {