Boost logo

Boost Users :

From: Joel de Guzman (joel_at_[hidden])
Date: 2004-06-24 21:55:52

Erik Thiele wrote:

> hi
> i have an int. but it should also support a "undefined" state like SQL
> NULL. most times i can use -1 for this. but there are also data types
> without a reasonable undefined value. maybe float or double. or maybe -1
> is perfectly legal.

Have you considered boost.optional?


Joel de Guzman

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