Topic: N2369 editorial/defect: New constexpr c'tors of complex are not
Author: gdr@cs.tamu.edu (Gabriel Dos Reis)
Date: Wed, 29 Aug 2007 13:41:16 GMT Raw View
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--8323584-391764803-1188353770=:17711
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
On Thu, 23 Aug 2007, Daniel Kr=FCgler wrote:
| The incorporation of the new constexpr facility into the last recent
| draft has lead to some invalid
| c'tor definitions, because their arguments are not literal types.
| These are:
|=20
| [complex.special]:
| In template<> class complex<float>:
|=20
| explicit constexpr complex(const complex<double>&);
| explicit constexpr complex(const complex<long double>&);
|=20
| In template<> class complex<double>:
|=20
| constexpr complex(const complex<float>&);
| explicit constexpr complex(const complex<long double>&);
|=20
| In template<> class complex<long double>:
|=20
| constexpr complex(const complex<float>&);
| constexpr complex(const complex<double>&);
|=20
| Proposed resolution:
|=20
| Replace above mentioned c'tor declarations by the following ones:
|=20
| In template<> class complex<float>:
|=20
| explicit constexpr complex(complex<double>);
| explicit constexpr complex(complex<long double>);
These (correct) declarations are the ones that have been voted on at
the Toronto meeting, so I suspect what you see are just ephemerial
editorial defects. Thanks!
|=20
| In template<> class complex<double>:
|=20
| constexpr complex(complex<float>);
| explicit constexpr complex(complex<long double>);
|=20
| In template<> class complex<long double>:
|=20
| constexpr complex(complex<float>);
| constexpr complex(complex<double>);
|=20
| Greetings from Bremen,
|=20
| Daniel
|=20
| ---
| [ comp.std.c++ is moderated. To submit articles, try just posting with=
]
| [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu =
]
| [ --- Please see the FAQ before posting. --- =
]
| [ FAQ: http://www.comeaucomputing.com/csc/faq.html =
]
|=20
|=20
--=20
Dr. Gabriel Dos Reis (gdr@cs.tamu.edu), Assistant Professor
http://www.cs.tamu.edu/people/faculty/gdr
Texas A&M University -- Department of Computer Science
301, Bright Building -- College Station, TX 77843-3112
--8323584-391764803-1188353770=:17711--
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]