Hi Folks,
The standard num_put facet does not directly sup****t floats, only
doubles; paraphrasing Jossuttis, "This is no problem because
corresponding values of build-in types are promoted to sup****ted
types when necessary."
Unfortunately, in the course of events, we have come across a need
for a facet that outputs floats and double in different formats. We
have found work-arounds, but they're either A) ugly or B) amount to
developing replacements for the standard iostream cl*****. My
questions are, then:
A) Should / could the lack of num_put::put( ... float) be considered
a defect in the current standard?
B) Are the facets in the upcoming standard any different?
C) Does anyone have notions for work-arounds?
Thanks very much in advance.
--
Dave Steffen, Ph.D.
Numerica Cor****ation (www.numerica.us <http://www.numerica.us/>
)
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]