
See deduce_vec2 (https://boostorg.github.io/qvm/#deduce_vec2): this template is used by QVM whenever it needs to deduce a vector type of certain dimension from the types of two user-supplied function parameters (there is also deduce_vec, which is used by unary operations). If you don't care about the resulting vector type but only about its scalar type, you can specialize deduce_scalar instead ( https://boostorg.github.io/qvm/#deduce_scalar), which is used by deduce_vec2 by default. On Mon, Dec 7, 2020 at 8:58 AM Kai Szuttor via Boost <boost@lists.boost.org> wrote:
Hey all,
concerning vector operations in boost qvm, is it possible to somehow specify the return type of a binary operator with mixed scalar input data, e.g.
operator+(vec<double, 3>, vec<int, 3>)
?
Could not find the customisation point to do this depending on the involved operation.
Thanks in advance,
Kai
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost