Subject: [Boost-bugs] [Boost C++ Libraries] #11089: Missing qualifier for fputs call in libs/lexical_cast/example/small_examples.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-09 21:12:47
#11089: Missing qualifier for fputs call in
libs/lexical_cast/example/small_examples.cpp
-------------------------------------------+--------------------------
Reporter: Aparna Kumta <aparna.kumta@â¦> | Owner: apolukhin
Type: Bugs | Status: new
Milestone: To Be Determined | Component: lexical_cast
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------------+--------------------------
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);
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11089> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC