File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ void foo()
466
466
$(TD String Parameters)
467
467
$(TD Yes:
468
468
---
469
- void foo(char[] format)(int i)
469
+ void foo(string format)(int i)
470
470
{
471
471
writefln(format, i);
472
472
}
@@ -480,10 +480,10 @@ foo!("i = %s")(3);
480
480
$(BR)$(B$(U C++17))$(BR)
481
481
Only indirectly:
482
482
$(CPPCODE2
483
- template <const char* >
483
+ template <const char *str >
484
484
struct S {};
485
485
486
- S<"Foo"> foo1; $(ERROR A string literal argument is still illegal)
486
+ S<"Foo"> foo1; // $(ERROR A string literal argument is still illegal)
487
487
const char foo_str[] = "foo";
488
488
S<foo_str> foo2; // Literal types are allowed, including arrays.
489
489
)
@@ -946,7 +946,7 @@ Macros:
946
946
NO1=<td class="compNo"><a href="$1">No</a></td>
947
947
D_CODE = <pre class="d_code2">$0</pre>
948
948
CPPCODE2 = <pre class="cppcode2">$0</pre>
949
- ERROR = $(RED $(B error))
949
+ ERROR = $(RED $(B error) $0 )
950
950
SUBNAV=$(SUBNAV_ARTICLES)
951
951
META_KEYWORDS=D Programming Language, template metaprogramming,
952
952
variadic templates, type deduction, dependent base class
You can’t perform that action at this time.
0 commit comments