Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > num_put facet h...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 9760 of 10094
Post > Topic >>

num_put facet has no 'float' handling

by Dave Steffen <dgsteffen@[EMAIL PROTECTED] > Jul 1, 2008 at 07:51 PM

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! ]
 




 1 Posts in Topic:
num_put facet has no 'float' handling
Dave Steffen <dgsteffe  2008-07-01 19:51:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 9:08:25 CDT 2008.