We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc5becb commit 42e35cfCopy full SHA for 42e35cf
source/declarators.tex
@@ -2214,12 +2214,13 @@
2214
constitute a reference. \end{note}
2215
2216
\pnum
2217
-\begin{example} One can enforce non-default-initialization and non-integral
2218
-initialization with
+\begin{example} One can prevent default initialization and
+initialization by non-\tcode{double}s with
2219
\begin{codeblock}
2220
struct onlydouble {
2221
onlydouble() = delete; // OK, but redundant
2222
- onlydouble(std::intmax_t) = delete;
+ template<class T>
2223
+ onlydouble(T) = delete;
2224
onlydouble(double);
2225
};
2226
\end{codeblock}
0 commit comments