mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
second part of c++11 update. gcc 4.5 and VS 2010 are no longer supported
- BOOST_FOREACH -> for - replaced several boost classes with std (e.g. unordered) - removed gcc-4.5 workarounds - ran clang c++11 migration tool to detect some cases: - - pointer initialized with "0" to nullptr - - replace for with iterators with range-based for - - use auto in some situations (type name specified twice, avoid long iterators type names)
This commit is contained in:
@@ -137,8 +137,7 @@ public:
|
||||
void addOperation(unique_ptr<CMapOperation> && operation); /// Client code does not need to call this method.
|
||||
|
||||
private:
|
||||
// FIXME: switch back to unique_ptr once gcc 4.5 is abandoned
|
||||
typedef std::list<shared_ptr<CMapOperation> > TStack;
|
||||
typedef std::list<unique_ptr<CMapOperation> > TStack;
|
||||
|
||||
void doOperation(TStack & fromStack, TStack & toStack, bool doUndo);
|
||||
const CMapOperation * peek(const TStack & stack) const;
|
||||
|
||||
Reference in New Issue
Block a user