Boost logo

Boost :

Subject: Re: [boost] [operators] A modern SFINAE-based version of boost::operators?
From: Daniel Frey (d.frey_at_[hidden])
Date: 2017-11-15 16:14:00

> On 15. Nov 2017, at 17:05, Peter Dimov via Boost <boost_at_[hidden]> wrote:
> For those interested, here's a test program with which you can play. The results are, respectively, 0+1, 3+0, 0+3, 0+3, 0+0.

Nice, thanks for that. But the 0+0 is slightly misleading, as you don't copy the value with a copy-ctor, but you initialise a new value directly - this should count as well, especially thinking of cases like a matrix-like class with, say, an array of NxM elements as a direct member.

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