K
Kevin Goodsell
Buster said:I think we're in agreement about what does and doesn't work. What I expected
to happen, happens. What I'm not sure of is whether what I expect is enforced
by the standard.
I should have removed that line from my post when I realized what you
were doing.
The question was "I want to find the length of an int array that is being
passed to a function". No mention of pointers there.
But an array cannot be (directly) passed to a function. I think the
template and/or reference solution seems unlikely to work well in
practice. When dealing with "arrays", one often actually deals with
pointers (because it was passed from elsewhere, or dynamically allocated).
-Kevin