Skip to content

Commit 7ddc895

Browse files
committed
JP 06: [dcl.constexpr] Remove incorrect example.
Also fixes #370.
1 parent c7ee7c6 commit 7ddc895

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

source/declarations.tex

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -956,14 +956,6 @@
956956
The \tcode{constexpr} specifier has no
957957
effect on the type of a \tcode{constexpr} function or a \tcode{constexpr} constructor. \enterexample
958958
\begin{codeblock}
959-
class debug_flag {
960-
public:
961-
explicit debug_flag(bool);
962-
constexpr bool is_on() const; // error: \tcode{debug_flag} not
963-
// literal type
964-
private:
965-
bool flag;
966-
};
967959
constexpr int bar(int x, int y) // OK
968960
{ return x + y + x*y; }
969961
// ...

0 commit comments

Comments
 (0)