Opened 18 years ago

Closed 17 years ago

#368 closed Bugs (None)

!ompilation test/minmax_element_test.cpp failed on Sunpro

Reported by: atanasyan Owned by: beman_dawes
Milestone: Component: test
Version: None Severity:
Keywords: Cc:

Description

= Bug description:

Boost version: 1.32.0
Compiler: Sun Studio 10 release (C++ 5.7) with patch
117830-01

% cd ~/boost/libs/algorithm/minmax/test
% CC -library=stlport4 -c -library=stlport4
-I/home/sa154628/boost \
    minmax_element_test.cpp
minmax_element_test.cpp, line 230: Error: The function
"atoi" must have a prototype.
1 Error(s) detected.

== Proposed fix

Only std c++ headers are included in the
minmax_element_test.cpp. Therefore atoi is in the std
namespace and isn't exported to global one. So we
should change call atoi to std::atoi.

Change History (1)

comment:1 by mclow, 17 years ago

Status: assignedclosed
Logged In: YES 
user_id=131412

This was fixed for 1.33

#ifndef BOOST_NO_STDC_NAMESPACE
  using std::atoi;
#endif

Note: See TracTickets for help on using tickets.