Opened 8 years ago

Closed 8 years ago

#11089 closed Bugs (fixed)

Missing qualifier for fputs call in libs/lexical_cast/example/small_examples.cpp

Reported by: Aparna Kumta <aparna.kumta@…> Owned by: Antony Polukhin
Milestone: Boost 1.58.0 Component: lexical_cast
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Compiling libs/lexical_cast/example with Oracle Solaris Studio 12.4 on Solaris 11.2, we see the following error: "/export/home/boost_regression/boost_sparc-S2_stlport4/boost_root/libs/lexical_cast/example/small_examples.cpp", line 31: Error: The function "fputs" must have a prototype. 1 Error(s) detected.

The following change fixes the error. % diff ./small_examples.cpp small_examples.cpp_new 31c31 < fputs(buffer.begin(), file); ---

std::fputs(buffer.begin(), file);

Change History (1)

comment:1 by Antony Polukhin, 8 years ago

Milestone: To Be DeterminedBoost 1.58.0
Resolution: fixed
Status: newclosed

This issue has been fixed in 1.58b release

Note: See TracTickets for help on using tickets.