|
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?
Regards,
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net