1

Consider the following:

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

How many template parameters are acceptable here?

Sebastian Redl
  • 69,373
  • 8
  • 123
  • 157
jwalk
  • 1,120
  • 11
  • 27

1 Answers1

4

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
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
Sebastian Redl
  • 69,373
  • 8
  • 123
  • 157