Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-04-08 21:40:11


AMDG

Howard Hinnant wrote:
>> template <class T, class U>
>> decltype(true ? T() : U()) Min(T&& a, U&& b) {
>> return b < a ? b : a;
>> }
>>

Should this really work if T of U is a reference type and thus cannot
be default constructed?

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk