Boost logo

Boost :

Subject: Re: [boost] [guidelines] why template errors suck
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-09-28 12:44:27

On 28/09/10 17:10, Stewart, Robert wrote:
> ' can write a sum_int_impl using this Concept...'
> "Yes and"
> ' it too hacky?'
> "yes"
Guess I embarassed myself then *blushes*
Why is it hacky ? The fact that second(int) return 0 ?
Then can't we say that second(int) is ill-formed and have
HasFirstComponent and HasSecondComponent and thus making the
std::pair sum require AND relation ?

(or am I still guessing it wrong ?)

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