
Gottlob Frege wrote:
On Wed, Jul 8, 2009 at 6:42 AM, vicente.botet<vicente.botet@wanadoo.fr> wrote:
Yes, this is what I wanted to say. On the case of the direction class, you are forced to give an *initial value* because direction is not default constructible, but with your interface we can't have an exception in this case. Is for this reason I say you are mixin both.
Do we need to give an initial value just for conversion to work at all, or is it only needed as a return in the error case?
Tony
Hi It is needed for both usages: the initial value when the class is not default constructible, and the error value when we want this value to be returned when failure. Now we can not have an exception for the conversion to a class that is not default constructible because when we give a default value it is also interpreted as the error value. As I said we are mixing both concepts, which is not good, as both are orthogonal. Vicente -- View this message in context: http://www.nabble.com/-convert--Now-with-Boost.Parameter-interface.-tp233628... Sent from the Boost - Dev mailing list archive at Nabble.com.