Skip to content

Commit 4321702

Browse files
committed
JP 06: [dcl.constexpr] Remove incorrect example.
Also fixes cplusplus#370.
1 parent 62734eb commit 4321702

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

source/declarations.tex

-8
Original file line numberDiff line numberDiff line change
@@ -954,14 +954,6 @@
954954
The \tcode{constexpr} specifier has no
955955
effect on the type of a \tcode{constexpr} function or a \tcode{constexpr} constructor. \enterexample
956956
\begin{codeblock}
957-
class debug_flag {
958-
public:
959-
explicit debug_flag(bool);
960-
constexpr bool is_on() const; // error: \tcode{debug_flag} not
961-
// literal type
962-
private:
963-
bool flag;
964-
};
965957
constexpr int bar(int x, int y) // OK
966958
{ return x + y + x*y; }
967959
// ...

0 commit comments

Comments
 (0)