Topic: constepxr recursive definitions
Author: snk_kid <korcanh@googlemail.com>
Date: Sun, 13 Jun 2010 15:51:19 CST Raw View
Are recursive definitions of constepxr functions permitted? I've read
that originally they where not allowed but I've also read that they
are allowed now?
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: =3D?ISO-8859-1?Q?Daniel_Kr=3DFCgler?=3D <daniel.kruegler@googlemail.c=.om>
Date: Mon, 14 Jun 2010 14:42:14 CST Raw View
On 13 Jun., 23:51, snk_kid <korc...@googlemail.com> wrote:
> Are recursive definitions of constepxr functions permitted? I've read
> that originally they where not allowed but I've also read that they
> are allowed now?
Yes, they are permitted now. This has happened as part of the
resolution for core defect
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#699
HTH & Greetings from Bremen,
Daniel Kr=FCgler
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use
mailto:std-c++@netlab.cs.rpi.edu <std-c%2B%2B@netlab.cs.rpi.edu>]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: CornedBee <wasti.redl@gmx.net>
Date: Mon, 14 Jun 2010 15:23:22 CST Raw View
On Jun 13, 11:51 pm, snk_kid <korc...@googlemail.com> wrote:
> Are recursive definitions of constepxr functions permitted? I've read
> that originally they where not allowed but I've also read that they
> are allowed now?
Yes, they are. [dcl.constexpr] no longer contains any restrictions in
that regard.
Sebastian
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use
mailto:std-c++@netlab.cs.rpi.edu<std-c%2B%2B@netlab.cs.rpi.edu>
]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]