Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Alternative function syntax soon?

jlperla
Beginner
339 Views
It is too bad that you were not able to add in the C++0X alternative function return syntax. i.e.
template< typename Lhs, typename Rhs> 
  auto adding_func(const Lhs &lhs, const Rhs &rhs) -> decltype(lhs+rhs) {return lhs + rhs;}

I would like to put in my feedback that this is a very important feature and is something in the new Visual C++ as well as GCC. At this point, it is tough to use Intel's compiler because otherwise my library becomes extremely complicated with lots of head-scratching meta-programming.

To aid in my choice of features for writing the library, is there any hope in getting this in the next version?
0 Kudos
2 Replies
Judith_W_Intel
Employee
339 Views
This featureis already in our developmentcompiler, please consider signing up as a beta customer for our next release if you would like to test it.
0 Kudos
jesseperlagmail_com
339 Views
Sure, I would love to sign up for that. Can you point me in the right direction? What other C++0X features have been added to the beta?
0 Kudos
Reply