Boost logo

Boost Users :

Subject: Re: [Boost-users] [karma] auto_ + default floating point precisions
From: Brian Budge (brian.budge_at_[hidden])
Date: 2011-04-15 18:39:34

> Hi Brian -
> The important parts are here:
> <>
> That little example shows you how to customize the real number formatting to
> have whatever policies you want. The policy of interest to you is precision
> as listed in the table below the example.
> michael

Hi Michael -

Thanks for the pointer. If I use a floating point policy, but pass in
an integer, will it simply be ignored? In other words, if I use
generate, but I don't know the type being generated into a string, how
do I specify these policies? Or do I need to specialize my own use of
generate to only do this if I have a floating point type?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at