According 23.2.3.3 (Class template stack) of the C++03 standard, std::stack<..>
doesn't provide a swap(..) member function. Therefore the line
m_stack.swap(std::stack<std::auto_ptr<AsyncContainer> >()); causes a
compilation error with GCC (tested with 4.6.3 and 4.8.1). Further more, the
same line issues the warning C4239 (nonstandard extension used : 'argument' :
conversion from 'std::stack<_Ty>' to 'std::stack<_Ty> &') with Visual Studio
(2012). I attached a patch, which maybe used.
Used code:
http://ember-plus.googlecode.com/svn/tags/emberplussdk-1-4-0 @ rev. 38 (Ember+
SDK v1.4).
Original issue reported on code.google.com by
nullable...@gmail.comon 22 Jul 2013 at 8:48Attachments: