views:

109

answers:

1

is there anyone have read the source code of dtl in c++? I found there is a class called variant_row, it used to store all kinds of data, and i tried to read the source code, but it is really hard for me, can someone explain how it is implemented and the class struct?

Thanks !

+4  A: 

Consider investigating the implementation of BOOST.Variant and BOOST.Optional, They are definitions of a general purpose "generic" types.

http://www.boost.org/doc/libs/1%5F40%5F0/doc/html/variant.html

http://www.boost.org/doc/libs/1%5F40%5F0/libs/optional/doc/html/index.html

Beh Tou Cheh