Boost logo

Boost :

Subject: [boost] [qvm] deduce_xx traits wouldn't introduce ODR issues.
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2015-12-09 17:51:41


I wonder if the deduce_xx traits wouldn't introduce ODR issues. Remember the TBoost.Conversion library where conversion between two types was customizable.
The fact that deduce_xx traits have two types would promote ODR as there is no one type that is expected to do the customization.

I believe that changing the default to something depending on the first argument will be better than using the specific qvm type as result.

If this is not enough, you could add symbolic operations taken the result type as parameter, e.g. if a+b is not something specified by A, the user could use


Forget my comment if there is no ODR issue.


Boost list run by bdawes at, gregod at, cpdaniel at, john at