25 Jun
2004
25 Jun
'04
2:55 a.m.
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