How many types of data enhances option support?

Consider the following:

// what is N? typedef boost::variant<T1, ..., TN> variant_t; 

How many template options are acceptable here?

0
source share
1 answer

The answer is hidden in the documentation:

http://www.boost.org/doc/libs/1_53_0/doc/html/BOOST_VARIANT_LIMIT_TYPES.html

 // In header: <boost/variant/variant_fwd.hpp> BOOST_VARIANT_LIMIT_TYPES 
+3
source

Source: https://habr.com/ru/post/1485475/


All Articles