From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2020-12-07 20:29:40
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_at_[hidden]>
> 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,
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk