Make sure atoi is available

[SVN r27913]
This commit is contained in:
Douglas Gregor
2005-04-01 22:19:44 +00:00
parent c475f8559d
commit 1489b70457

View File

@ -11,6 +11,7 @@
#include <vector>
#include <list>
#include <set>
#include <cstdlib>
#include <boost/config.hpp> /* prevents some nasty warns in MSVC */
#include <boost/algorithm/minmax_element.hpp>
@ -226,6 +227,10 @@ void test(int n BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(Value))
int test_main( int argc, char* argv[] )
{
#ifndef BOOST_NO_STDC_NAMESPACE
using std::atoi;
#endif
int n = 100;
if (argc > 1) n = atoi(argv[1]);