Boost C++ Libraries

PrevUpHomeNext

Configuration

MAX_ARITY
MAX_LINEAR_ARITY
Description

BOOST_EGG_MAX_ARITY is an overridable configuration macro regulating the maximum supported arity of by_perfect.

Valid expressions

Valid expression

Semantics

BOOST_EGG_MAX_ARITY

5 unless overridden.

#define BOOST_EGG_MAX_ARITY N

Overrides BOOST_EGG_MAX_ARITY by N.

Precondition
  • 5 <= N && N <= BOOST_RESULT_OF_NUM_ARGS.
  • N <= BOOST_EGG_MAX_LINEAR_ARITY.
  • The second expression must be placed before including any Egg headers.
[Caution] Caution

7 or more arity tends to make compile-time very slow.

Description

BOOST_EGG_MAX_LINEAR_ARITY affects the maximum supported arity of by_ref, by_cref and by_value etc.

Valid expressions

Valid expression

Semantics

BOOST_EGG_MAX_LINEAR_ARITY

10 unless overridden.

#define BOOST_EGG_MAX_LINEAR_ARITY N

Overrides BOOST_EGG_MAX_LINEAR_ARITY by N.

Precondition
  • 10 <= N && N <= BOOST_RESULT_OF_NUM_ARGS.
  • BOOST_EGG_MAX_ARITY <= N.
  • The second expression must be placed before including any Egg headers.

PrevUpHomeNext