From 1489b704577f5fba451fe4963c30aba748fd34a9 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 1 Apr 2005 22:19:44 +0000 Subject: [PATCH] Make sure atoi is available [SVN r27913] --- minmax/test/minmax_element_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/minmax/test/minmax_element_test.cpp b/minmax/test/minmax_element_test.cpp index 96844b6..8758f12 100644 --- a/minmax/test/minmax_element_test.cpp +++ b/minmax/test/minmax_element_test.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include /* prevents some nasty warns in MSVC */ #include @@ -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]);