Drake
assert_if_is_constraint< F > Struct Template Reference

Template condition to only catch when Constraints are inadvertently passed as an argument. More...

#include <drake/solvers/create_cost.h>

Collaboration diagram for assert_if_is_constraint< F >:

Static Public Attributes

static constexpr bool value = is_binding_compatible<F, Constraint>::value
 

Detailed Description

template<typename F>
struct drake::solvers::detail::assert_if_is_constraint< F >

Template condition to only catch when Constraints are inadvertently passed as an argument.

If the class is binding-compatible with a Constraint, then this will provide a static assertion to enable easier debugging of which type failed.

Template Parameters
FThe type to be tested.
See also
http://stackoverflow.com/a/13366183/7829525

Member Data Documentation

constexpr bool value = is_binding_compatible<F, Constraint>::value
static

The documentation for this struct was generated from the following file: