I need Value to hold a vector of Values itself, can this be done?
A person I know told me it could be done using recursive_wrapper but it seems i'm not getting it right nor if it can actually be done. I tried to compile the following code and receive several invalid template arguments error because Value has not yet been declared:
Thank you jsmith it actually works like that!
It brought me a lot of new troubles because of the use I gave to the old variant but that's got nothing to do with this.
Thanks again!
Cya
Note: Portability is unfortunately, due to standard conformance issues in several compilers, make_recursive_variant is not universally supported.
On these compilers the library indicates its lack of support via the definition of the preprocessor symbol BOOST_VARIANT_NO_FULL_RECURSIVE_VARIANT_SUPPORT. Thus, unless working with highly-conformant compilers, maximum portability will be achieved by instead using recursive_wrapper.