문제

Consider the following:

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

How many template parameters are acceptable here?

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top