A concrete traits class providing sugar to support for converting only from the double scalar type.
For example, if a MySystem<symbolic::Expression> cannot be converted into a MySystem<double>, it could specialize Traits as follows:
#include <drake/systems/framework/scalar_conversion_traits.h>
Public Types | |
| template<typename T , typename U > | |
| using | supported = typename std::bool_constant< std::is_same_v< U, double > > |