
28 Sep
2010
28 Sep
'10
4:44 p.m.
On 28/09/10 17:10, Stewart, Robert wrote:
'...one can write a sum_int_impl using this Concept...'
"Yes and"
'...is 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 ?)