Variant library or alternative suggestion
Whats is the status of the variant library which was supposed to have been approved for inclusion? I was unable to compile the code submitted for review. Are there any alternative ways/libraries for representing typesafe unions ? thanks -Vivek Arora
vivek_arora wrote:
Whats is the status of the variant library which was supposed to have been approved for inclusion?
It's going to be included in the next major Boost release (1.31, presumably a couple months away). Meanwhile, you can get the latest version of it from the Boost CVS repository - http://www.boost.org/more/download.html#CVS
I was unable to compile the code submitted for review.
On which compiler? Anyway, I beleive things have much improved since then - http://www.meta-comm.com/engineering/resources/cs-win32_metacomm/developer_r...
Are there any alternative ways/libraries for representing typesafe unions ?
Not in Boost (unless you are interested in the special case covered by Optional library - http://www.boost.org/libs/optional/doc/optional.html). Personally, I am not aware if any other discriminated union library that would be as powerfull and well-engineered as Boost.Variant. HTH, Aleksey
vivek_arora wrote:
Whats is the status of the variant library which was supposed to have been approved for inclusion?
It's going to be included in the next major Boost release (1.31,
a couple months away). Meanwhile, you can get the latest version of it from the Boost CVS repository - http://www.boost.org/more/download.html#CVS
I was unable to compile the code submitted for review.
On which compiler? Anyway, I beleive things have much improved since then
At 08:33 AM 8/17/2003, Aleksey Gurtovoy wrote: presumably -
http://www.meta-comm.com/engineering/resources/cs-win32_metacomm/developer_r...
That's my impression too. When it was first committed to CVS there were several compile failures, but the authors then did a lot of work to make sure variant works with lots of compilers. --Beman
participants (3)
-
Aleksey Gurtovoy
-
Beman Dawes
-
vivek_arora