File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1300,7 +1300,7 @@ auto unqualified_id_node::to_string() const
1300
1300
ret += separator;
1301
1301
assert (t.arg .index () != template_argument::empty);
1302
1302
if (t.arg .index () == template_argument::expression) {
1303
- ret += " ( expression) " ;
1303
+ ret += std::get<template_argument:: expression>(t. arg )-> to_string () ;
1304
1304
}
1305
1305
else if (t.arg .index () == template_argument::type_id) {
1306
1306
ret += std::get<template_argument::type_id>(t.arg )->to_string ();
@@ -7206,13 +7206,14 @@ class parser
7206
7206
!is_returns
7207
7207
&& n->declaration ->is_const ()
7208
7208
&& n->pass != passing_style::copy
7209
+ && n->pass != passing_style::inout
7209
7210
)
7210
7211
{
7211
7212
switch (n->pass ) {
7212
7213
break ;case passing_style::in:
7213
7214
error ( " an 'in' parameter is always const, 'const' isn't needed and isn't allowed" , false );
7214
7215
break ;case passing_style::inout:
7215
- error ( " an 'inout' parameter can't be const, if you do want it to be const then use 'in' instead" , false );
7216
+ // error( "an 'inout' parameter can't be const, if you do want it to be const then use 'in' instead", false );
7216
7217
break ;case passing_style::out:
7217
7218
error ( " an 'out' parameter can't be const, otherwise it can't be initialized in the function body" , false );
7218
7219
break ;case passing_style::move:
You can’t perform that action at this time.
0 commit comments