This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Second half of tr1/complex
- From: Howard Hinnant <hhinnant at apple dot com>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 13 Jan 2006 10:07:26 -0500
- Subject: Re: [Patch] Second half of tr1/complex
- References: <43C6F122.7070300@suse.de>
On Jan 12, 2006, at 7:15 PM, Paolo Carlini wrote:
the below would be the remaining part of tr1/complex, the additional
overloads.
I see one more issue that we might want to cover here. The new
overloads look overly generic to me, which may break user code. For
example, consider:
#include <tr1/complex>
using namespace std::tr1;
struct small {};
struct big
{
big() {}
big(small) {}
};
big arg(const big&) {return big();}
int main()
{
big b = arg(small());
}
So I'd be tempted to restrict these new overloads to integral or
arithmetic as appropriate.
-Howard