Boost logo

Boost :

From: Klemens Morgenstern (klemensdavidmorgenstern_at_[hidden])
Date: 2024-11-19 08:54:18


On Tue, Nov 19, 2024 at 4:46 PM Dennis Luehring via Boost <
boost_at_[hidden]> wrote:

> Am 19.11.2024 um 09:37 schrieb Klemens Morgenstern via Boost:
> > sqltie:;value would work. I should add optional support though.
> >
>
> maybe a related question - how to you handle overflows - for example
> reading a too large value into a float?
>

That's not supported, you'll need to provide a double or a 64 bit int.

>
> is there a way to define how safe the conversion should be (plain cast,
> check for overflow and throw exception)?
>

It's a minimal set of types at the moment and these are all safe.
A user can add his own conversions and will then be responsible to assure
it's safe.

>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk