Skip to content

Commit

Permalink
parameter taking array reference of unknown length
Browse files Browse the repository at this point in the history
  • Loading branch information
XeCycle committed May 30, 2019
1 parent 24af5c9 commit d98b78e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions param-array-ref-nolen.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
void f(int (&&)[])
{}
void f(int*)
{}
int x = (f(nullptr), 0);
using arr = int[];
int y = (f(arr{1, 2, 3}), 0);

0 comments on commit d98b78e

Please sign in to comment.