WG14 Post Santa Clara mailing available

  • Thread starter Keld Jørn Simonsen
  • Start date
H

Harald van Dijk

the old usage of 'auto' is no longer
supported in n2723.pdf, the latest working draft I've picked up of the
next version of the C standard.

You had me confused there. I'm sure you meant to say n2723 is a draft of
the next version of the C++ standard.
 
J

James Kuyper

blargg said:
[Re: planned new meaning for 'auto' in C++ - connection to planned
deprecation of 'auto' in C.]
There is an ugly solution that's not very flexible, just mentioning it for
completeness:

template <typename T, typename U, typename what_type> void func_ (
const T&t,
const U&u,
what_type temp
){
...
}

template <typename T, typename U> void func (
const T&t,
const U&u,
){
func_( t, u, t*u );
}

Yes - "not very flexible" indeed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top