<algorithm> no longer needs to include <cstdlib>, but can get away with just <cstddef>. This was brought to my attention by Salvatore Benedetto in his port to a bare-metal coretex-m3. This exposed two test bugs where an explicit #include <cstdlib> was needed.

llvm-svn: 160786
This commit is contained in:
Howard Hinnant 2012-07-26 17:09:09 +00:00
parent 6a03f169db
commit a1d07d57a7
3 changed files with 3 additions and 1 deletions

View File

@ -593,7 +593,7 @@ template <class BidirectionalIterator, class Compare>
#include <utility>
#include <memory>
#include <iterator>
#include <cstdlib>
#include <cstddef>
#include <__undef_min_max>

View File

@ -20,6 +20,7 @@
// Not a portable test
#include <codecvt>
#include <cstdlib>
#include <cassert>
int outstanding_news = 0;

View File

@ -20,6 +20,7 @@
// Not a portable test
#include <codecvt>
#include <cstdlib>
#include <cassert>
int outstanding_news = 0;