Make wxStack an alias template instead of a macro in STL build
Just avoid the unnecessary use of the preprocessor.
This commit is contained in:
parent
1e9b84cd27
commit
3a96c34e12
1 changed files with 3 additions and 1 deletions
|
|
@ -16,7 +16,9 @@
|
|||
#if wxUSE_STD_CONTAINERS
|
||||
|
||||
#include <stack>
|
||||
#define wxStack std::stack
|
||||
|
||||
template <typename T>
|
||||
using wxStack = std::stack<T>;
|
||||
|
||||
#else // !wxUSE_STD_CONTAINERS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue