Remove ptr_stack<T>, in favor of vector<unique_ptr<T>>.

(Not stack<unique_ptr<T>> because it wasn't quite a stack; we needed to get the second-to-last element sometimes.)
This commit is contained in:
Jesse Beder
2016-05-12 22:44:59 -05:00
parent 6e79997bb2
commit a45a61742b
3 changed files with 39 additions and 88 deletions

View File

@@ -7,15 +7,15 @@
#pragma once
#endif
#include "ptr_stack.h"
#include "setting.h"
#include "yaml-cpp/emitterdef.h"
#include "yaml-cpp/emittermanip.h"
#include <cassert>
#include <vector>
#include <stack>
#include <memory>
#include <stack>
#include <stdexcept>
#include <vector>
namespace YAML {
struct FmtScope {
@@ -174,7 +174,7 @@ class EmitterState {
}
};
ptr_stack<Group> m_groups;
std::vector<std::unique_ptr<Group>> m_groups;
std::size_t m_curIndent;
bool m_hasAnchor;
bool m_hasTag;