Macro
SEQAN_CTOR_ENABLE_IF
Bind the visibility of a constructor to an expression.
Include Headers
seqan/basic.h
Parameters
Boolean type. If True or a metafunction that returns True, the following function is visible, otherwise not. Remarks: The boolean value must be available at compile-time, e.g. |
Remarks
This macro allows to bind the visibility of a constructor to a boolean expression
by using the SFINAE principle for an optional argument with default value.
It can be used as the last dummy-argument of a constructor.
To avoid an unused argument warning, call ignoreUnusedVariableWarning(dummy) in the constructor's body.
Examples
num(n), den(1)
{
ignoreUnusedVariableWarning(dummy); // necessary to avoid unused warning
}
SeqAn - Sequence Analysis Library - www.seqan.de