tmp/tmphpvr055c/{from.md → to.md}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
-
###
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
template <int N> struct A;
|
| 13 |
template <typename T, T N> int foo(A<N> *) = delete;
|
| 14 |
void foo(void *);
|
|
|
|
| 1 |
+
### [[temp]]: templates <a id="diff.cpp14.temp">[[diff.cpp14.temp]]</a>
|
| 2 |
|
| 3 |
+
**Change:** Allowance to deduce from the type of a non-type template
|
| 4 |
+
argument. **Rationale:** In combination with the ability to declare
|
| 5 |
+
non-type template arguments with placeholder types, allows partial
|
| 6 |
+
specializations to decompose from the type deduced for the non-type
|
| 7 |
+
template argument. **Effect on original feature:** Valid C++14 code may
|
| 8 |
+
fail to compile or produce different results in this International
|
| 9 |
+
Standard. For example:
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
template <int N> struct A;
|
| 13 |
template <typename T, T N> int foo(A<N> *) = delete;
|
| 14 |
void foo(void *);
|