forked from boostorg/algorithm
Make sure atoi is available
[SVN r27913]
This commit is contained in:
@ -11,6 +11,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
#include <boost/config.hpp> /* prevents some nasty warns in MSVC */
|
#include <boost/config.hpp> /* prevents some nasty warns in MSVC */
|
||||||
#include <boost/algorithm/minmax_element.hpp>
|
#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[] )
|
int test_main( int argc, char* argv[] )
|
||||||
{
|
{
|
||||||
|
#ifndef BOOST_NO_STDC_NAMESPACE
|
||||||
|
using std::atoi;
|
||||||
|
#endif
|
||||||
|
|
||||||
int n = 100;
|
int n = 100;
|
||||||
if (argc > 1) n = atoi(argv[1]);
|
if (argc > 1) n = atoi(argv[1]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user